示例#1
0
    public void OnClick()
    {
        if (menuButtonController.index == thisIndex)
        {
            switch (type)
            {
            case BUTTON_TYPE.START:
                menuButtonController.StartLoading(nextSceneIndex);
                break;

            case BUTTON_TYPE.END:
                Debug.Log("I Quit!");
                Application.Quit();
                break;

            case BUTTON_TYPE.IN_MENU:
                this.animatorFunctions.disableOnce = false;
                StartCoroutine(menuButtonController.SwitchToWindow(nextMenuWindow));
                break;

            case BUTTON_TYPE.RESUME_GAME:
                menuButtonController.PauseGame(false);
                break;
            }
        }
    }
示例#2
0
 public void SetGameOver()
 {
     mBC.StartLoading(0);
 }