public void DealDamage(int damage) { playerHealthScript.playerHealth = playerHealthScript.playerHealth - damage; playerHealthScript.CheckHealth(); }