public void OnGameExitRequest() { CancelInvoke("HideContainer"); PauseHelper.PauseGame(); exitButtonsContainer.active = true; fadingBackground.FadeInto(Color.black, 10); }
private void OnStartTutorial() { PauseHelper.PauseGame(); output.enabled = true; isInTutorialMode = true; }
public void OnPauseButtonClicked() { switch (menuState) { case MenuState.HIDDEN: menuState = MenuState.SHOWING; PauseHelper.PauseGame(); ShowMenu(); DispatchMessage("OnGamePaused", null); break; case MenuState.SHOWN: menuState = MenuState.HIDING; HideMenu(); break; } }