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