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