public override void Enter() { gm = context.GetGameManager(); musicCtrl = gm.GetMusicController(); uiMng = gm.GetUIManager(); mainMenuPanel = uiMng.GetMenu <UIMenu_MainMenu>(); uiMng.SetCurrentMenuAnimation <UIMenu_MainMenu>("MainMenuIn"); CoroutineController.StartRoutine(() => mainMenuPanel.EnablePanelContainer(true), 0.01f); musicCtrl.PlayMainMenuClip(); mainMenuPanel.StartGameButtonPressed = StartGameButtonPressed; }
public override void Enter() { gm = context.GetGameManager(); uiMng = gm.GetUIManager(); endGamePanel = uiMng.GetMenu <UIMenu_EndGame>(); spawnCtrl = gm.GetSpawnController(); printCtrl = gm.GetPrintController(); bgMng = gm.GetBackgroundManager(); musicCtrl = gm.GetMusicController(); endGamePanel.RetyButtonPressed = RetryButtonPressed; endGamePanel.MainMenuButtonPressed = MainMenuButtonPressed; printCtrl.EndGameAnimation(OnPrinterAnimationEnd); }
public override void Enter() { startState = false; adsMng = UnityAdsManager.instance; gm = context.GetGameManager(); spawnCtrl = gm.GetSpawnController(); uiMng = gm.GetUIManager(); shapeCtrl = gm.GetShapeController(); bgMng = gm.GetBackgroundManager(); printCtrl = gm.GetPrintController(); scoreCtrl = gm.GetScoreController(); musicCtrl = gm.GetMusicController(); PrintController.OnShapeGuessed += HandleOnShapeGuessed; PrintController.OnShapeWrong += HandleOnShapeWrong; ShapeController.OnShapeChanged += HandleOnShapeChange; ShapeController.OnNewShapeAdd += HandleOnNewShapeAdd; gm.OnGameEnd += HandleOnGameEnd; gameplayPanel = uiMng.GetMenu <UIMenu_Gameplay>(); printCtrl.EnableGraphic(false); uiMng.SetCurrentMenu <UIMenu_Gameplay>(0.5f, 0.5f, OnGameplayFadeIntCallback, OnGameplayFadeOutCallback); }