예제 #1
0
    public override void Move(int x, int y, BaseScene.INPUT_TYPE type, JoystickManager.JOYSTICK_KEY_STATE keyState, JoystickManager.PLAYER_INDEX player)
    {
        if (!GetCanPress())
        {
            return;
        }

        if (SongCard.IsDownloading())
        {
            if (buyConfirm.gameObject.activeSelf)
            {
                buyConfirm.Move(x);
            }
            return;
        }


        if (buyConfirm.gameObject.activeSelf)
        {
            buyConfirm.Move(x);
        }
        else if (alert.gameObject.activeSelf)
        {
            return;
        }
        else
        {
            Sounder.instance.Play("歌曲切换音效");
            if (list.downloading)
            {
                return;
            }
            if (x != 0)
            {
                difficult.Move(x);
            }
            else if (y != 0)
            {
                list.Move(y);
            }
        }
    }