public void OnGainHealth(InputValue button) { Debug.Log("Gain Health"); playerStats.SetHealth(20); playerStats.setMoney(20); }
public void OnHeal(InputValue button) { if (amountBandages > 0) { Debug.Log("Healing"); playerStats.SetHealth(40); setBandages(-1); } }
void OnTriggerEnter(Collider other) { if (other.tag == "Player") { Debug.Log("Ow"); playerStats.SetHealth(-6); DestroyProjectile(); } else { DestroyProjectile(); } }