Пример #1
0
        public override void CheckLifePlayer(int life)
        {
            base.CheckLifePlayer(life);

            if (life == 0)
            {
                UnityAction action;
                if (menuAndLevelsDivided)
                {
                    action = () => StartScene("Menu");
                }
                else
                {
                    action = () => mainMenu?.OpenMenu();
                }

                mainMenu?.ConsoleWinMessage_Show("Game over!", action);
            }
        }