Ejemplo n.º 1
0
        private bool GameOverCheck()
        {
            if (!PlayerParty.First(p => p.Class == ClassType.Egg).IsAlive)
            {
                State = BattleGameStateType.GameOver;

                StartCoroutine(GameOverCrt());
                return(true);
            }


            if (EnemyParty.All(p => !p.IsAlive))
            {
                if (!VictoryScreen.gameObject.activeInHierarchy)
                {
                    State = BattleGameStateType.GameOver;

                    StartCoroutine(GameOverCrt());
                    return(true);
                }
            }

            return(false);
        }