Exemplo n.º 1
0
        private bool PlayerLose(BattleEntities.Player player)
        {
            int count = 0;

            for (int i = 0; i < player.CharacterBattles.Count; i++)
            {
                if (player.CharacterBattles[i].IsDead)
                {
                    count++;
                }
            }
            if (count == player.CharacterBattles.Count)
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 2
0
 public static void EndGame(BattleEntities.Player playerWinner)
 {
     OnEndGame?.Invoke(playerWinner);
 }
Exemplo n.º 3
0
 private void EndGame(BattleEntities.Player playerWinner)
 {
     EventManager.EndGame(playerWinner);
     m_isStarted = false;
 }