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; } } } */