public void PlayerShot(float amount) { PlayerHealth = PlayerHealth - amount; healthbar.SetHealth(PlayerHealth); if (PlayerHealth <= 0) { gamemanager.EndGame(); } }