Example #1
0
        private void OnDecided()
        {
            switch (selectButtonIdx)
            {
            case 0:
                ButtonClickEvent resume = owner.pauseResumeButton.GetComponent <ButtonClickEvent>();
                resume.OnPointerClick();
                owner.Resume();
                break;

            case 1:
                ButtonClickEvent back = owner.pauseTitleBackButton.GetComponent <ButtonClickEvent>();
                back.OnPointerClick();
                owner.TitleBack();
                break;
            }
        }
Example #2
0
    private void OnDecided()
    {
        switch (selectButtonIdx)
        {
        case 0:
            ButtonClickEvent start = startButton.GetComponent <ButtonClickEvent>();
            start.OnPointerClick();
            OnClickStart();
            break;

        case 1:
            ButtonClickEvent exit = exitButton.GetComponent <ButtonClickEvent>();
            exit.OnPointerClick();
            OnClickExit();
            break;
        }
    }
Example #3
0
        private void OnDecided()
        {
            switch (selectButtonIdx)
            {
            case 0:
                ButtonClickEvent back = owner.resultTitleBackButton.GetComponent <ButtonClickEvent>();
                back.OnPointerClick();
                owner.TitleBack();
                break;

            case 1:
                ButtonClickEvent retry = owner.resultRetryButton.GetComponent <ButtonClickEvent>();
                retry.OnPointerClick();
                owner.Retry();
                break;
            }
        }