private void ActivateLevel(int number) { gameLogicScript.InitLevelRules(this); string stRules = gameData.GetStringTask(); mainMenu?.ConsoleWinMessage_Show(stRules, StartLevel); }
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); } }