Пример #1
0
    // -------------------入力-------------------
    public void OnSelect(InputValue value)
    {
        var a = value.Get <Vector2> ();

        if (popup.gameObject.activeSelf == true)
        {
            if (a.x != 0)
            {
                popup.CurrentSelect += (a.x == -1) ? -1 : 1;
                popup.CurrentSelect  = UIFunctions.RevisionValue(popup.CurrentSelect, 2);
                SoundManager.Instance.PlaySE(SoundManager.SE.Cursor);
                popup.UpdateUI();
            }
        }
    }
Пример #2
0
    // -------------------入力-------------------
    public void OnSelect(InputValue value)
    {
        var a = value.Get <Vector2> ();

        if (exitPopup.gameObject.activeSelf == true)
        {
            if (a.x != 0)
            {
                exitPopup.CurrentSelect += (a.x == -1) ? -1 : 1;
                exitPopup.CurrentSelect  = UIFunctions.RevisionValue(exitPopup.CurrentSelect, 2);
                SoundManager.Instance.PlaySE(SoundManager.SE.Cursor);
                exitPopup.UpdateUI();
            }
        }
        else if (a.y != 0)
        {
            currentSelect += (a.y == -1) ? 1 : -1;

            currentSelect = UIFunctions.RevisionValue(currentSelect, screens.Length - 1);
            SoundManager.Instance.PlaySE(SoundManager.SE.Cursor);
            UpdateMenuUI(currentSelect);
        }
    }