public override void Exit() { if (uiMng != null) { uiMng.Init(); } SceneManager.sceneLoaded -= HandleOnSceneLoaded; }
private void NewSceneSetup() { LevelManager newLvlMng = FindObjectOfType <LevelManager>(); newLvlMng.Setup(); uiMng.Init(); uiMng.GetCurrentUIController().SetCurrentMenu <UIMenu_Gameplay>(); gm.SetLevelManager(newLvlMng); }
public override void Exit() { if (endGamePanel != null) { endGamePanel.RetryButtonPressed -= HandleRetryButtonPressed; } if (uiMng != null) { uiMng.Init(); } SceneManager.sceneUnloaded -= HandleOnSceneUnloaded; SceneManager.sceneLoaded -= HandleOnSceneLoaded; }
public override void Exit() { if (lvlMng != null) { lvlMng.GetGroupController().Enable(true); } if (uiMng != null) { uiMng.Init(); } SceneManager.sceneLoaded -= HandleOnNewSceneLoaded; SceneManager.sceneUnloaded -= HandleOnOldSceneUnloaded; }