コード例 #1
0
 public void OnGameExitRequest()
 {
     CancelInvoke("HideContainer");
     PauseHelper.PauseGame();
     exitButtonsContainer.active = true;
     fadingBackground.FadeInto(Color.black, 10);
 }
コード例 #2
0
    private void OnStartTutorial()
    {
        PauseHelper.PauseGame();

        output.enabled   = true;
        isInTutorialMode = true;
    }
コード例 #3
0
    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;
        }
    }