Пример #1
0
    public override void Exit()
    {
        if (uiMng != null)
        {
            uiMng.Init();
        }

        SceneManager.sceneLoaded -= HandleOnSceneLoaded;
    }
Пример #2
0
    private void NewSceneSetup()
    {
        LevelManager newLvlMng = FindObjectOfType <LevelManager>();

        newLvlMng.Setup();

        uiMng.Init();
        uiMng.GetCurrentUIController().SetCurrentMenu <UIMenu_Gameplay>();

        gm.SetLevelManager(newLvlMng);
    }
Пример #3
0
    public override void Exit()
    {
        if (endGamePanel != null)
        {
            endGamePanel.RetryButtonPressed -= HandleRetryButtonPressed;
        }

        if (uiMng != null)
        {
            uiMng.Init();
        }

        SceneManager.sceneUnloaded -= HandleOnSceneUnloaded;
        SceneManager.sceneLoaded   -= HandleOnSceneLoaded;
    }
Пример #4
0
    public override void Exit()
    {
        if (lvlMng != null)
        {
            lvlMng.GetGroupController().Enable(true);
        }

        if (uiMng != null)
        {
            uiMng.Init();
        }

        SceneManager.sceneLoaded   -= HandleOnNewSceneLoaded;
        SceneManager.sceneUnloaded -= HandleOnOldSceneUnloaded;
    }