Esempio n. 1
0
    public override void PressEnter(BaseScene.INPUT_TYPE type, JoystickManager.JOYSTICK_KEY_STATE keyState, JoystickManager.PLAYER_INDEX player)
    {
        if (SongCard.IsDownloading())
        {
            if (buyConfirm.gameObject.activeSelf)
            {
                buyConfirm.Press();
            }
            return;
        }

        if (buyConfirm.gameObject.activeSelf)
        {
            buyConfirm.Press();
        }
        else if (alert.gameObject.activeSelf)
        {
            alert.gameObject.SetActive(false);
            return;
        }
        else
        {
            if (list.Press())
            {
                GoNext();
            }
        }
    }