Exemplo n.º 1
0
        private void CheckForGameOver()
        {
            var enemyCharacters  = levelService.GetCharacters(EntityFaction.Enemy);
            var playerCharacters = levelService.GetCharacters(EntityFaction.Player);

            if (enemyCharacters.Count == 0)
            {
                hud.ShowBattleResults(true);
            }
            else if (playerCharacters.Count == 0)
            {
                hud.ShowBattleResults(false);
            }
        }