Beispiel #1
0
        private void OnSelected()
        {
            ButtonHighlightEvent resume = owner.pauseResumeButton.GetComponent <ButtonHighlightEvent>();
            ButtonHighlightEvent back   = owner.pauseTitleBackButton.GetComponent <ButtonHighlightEvent>();

            switch (selectButtonIdx)
            {
            case 0:
                resume.OnPointerEnter();
                back.OnPointerExit();
                break;

            case 1:
                resume.OnPointerExit();
                back.OnPointerEnter();
                break;
            }
        }
Beispiel #2
0
    private void OnSelected()
    {
        ButtonHighlightEvent start = startButton.GetComponent <ButtonHighlightEvent>();
        ButtonHighlightEvent exit  = exitButton.GetComponent <ButtonHighlightEvent>();

        switch (selectButtonIdx)
        {
        case 0:
            exit.OnPointerExit();
            start.OnPointerEnter();
            break;

        case 1:
            start.OnPointerExit();
            exit.OnPointerEnter();
            break;
        }
    }
Beispiel #3
0
        private void OnSelected()
        {
            ButtonHighlightEvent retry = owner.resultRetryButton.GetComponent <ButtonHighlightEvent>();
            ButtonHighlightEvent back  = owner.resultTitleBackButton.GetComponent <ButtonHighlightEvent>();

            switch (selectButtonIdx)
            {
            case 0:
                back.OnPointerEnter();
                retry.OnPointerExit();
                break;

            case 1:
                back.OnPointerExit();
                retry.OnPointerEnter();
                break;
            }
        }