1
Fork 0
slime-blood-and-pain/Assets/Scripts/Consumabile.cs
2019-04-27 17:28:38 +02:00

34 lines
No EOL
654 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/*
public class Consumabile : Object
{
// Start is called before the first frame update
public enum Tipo {Cura, Danno};
public GameObject player;
public Player player;
public int valore;
void Start()
{
}
// Update is called once per frame
void Update()
{
}
void use(){
if (Tipo == Tipo.Cura){
player.hp += valore;
if (player.hp >= player.maxhp) player.hp = player.maxhp;
}
if (Tipo == Tipo.Danno){
player.hp -= valore;
}
}
}
*/