コード例 #1
0
        private void ActivateLevel(int number)
        {
            gameLogicScript.InitLevelRules(this);

            string stRules = gameData.GetStringTask();

            mainMenu?.ConsoleWinMessage_Show(stRules, StartLevel);
        }
コード例 #2
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);
            }
        }