Example #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);
        }
Example #2
0
 public static void EndGame(BattleEntities.Player playerWinner)
 {
     OnEndGame?.Invoke(playerWinner);
 }
Example #3
0
 private void EndGame(BattleEntities.Player playerWinner)
 {
     EventManager.EndGame(playerWinner);
     m_isStarted = false;
 }