Пример #1
0
 public void PlayerDeath()
 {
     if (PlayerAlive)
     {
         PlayerAlive = false;
         particles.DestroyingBuddy(player.transform.position);
         player.gameObject.SetActive(false);
         CheckPlayerDead();
         if (CurrentState.Contains(GameState.State.playerAlive))
         {
             CurrentState.Remove(GameState.State.playerAlive);
         }
         ui.DisplayMessage(cow.transform.position, "player died", Color.black);
     }
 }