public void TakeDamage(float damage) { healthBehaviour.playerStats.health -= damage; if (healthBehaviour.playerStats.health <= 0) { healthBehaviour.PlayerDead(); } }
public void TakeDamage(float damage) { healthBehaviour.playerStats.health -= damage; if (healthBehaviour.playerStats.health <= 0) { healthBehaviour.PlayerDead(); } }