// Use this for initialization void Start() { RB = GetComponent <Rigidbody>(); playerStatus = GetComponent <Player_status>(); playerHUD = GetComponent <Player_hud>(); playerEquip = GetComponent <Player_equip>(); }
// Use this for initialization void Start() { playerHandler = GetComponent <Player_handler>(); playerStatus = GetComponent <Player_status>(); }
// Potions only affect the player using them. public virtual void OnUse(Player_status ps) { }
public override void OnUse(Player_status ps) { ps.Heal(healAmount); }