예제 #1
0
파일: Intro.cs 프로젝트: pontura/vacunas
    void OnInput(InputManager.types type)
    {
        switch (type)
        {
        case InputManager.types.SWIPE_RIGHT:
            SwipeRight();
            break;

        case InputManager.types.SWIPE_LEFT:
            SwipeLeft();
            break;

        case InputManager.types.GATILLO_DOWN:
            if (!PersistentData.Instance.langSelected)
            {
                WaitForLanguage();
            }
            else
            {
                StartCoroutine(Done());
            }
            break;

        case InputManager.types.PAD_HOLD:
            Reset();
            break;
        }
    }
예제 #2
0
    void OnInput(InputManager.types type)
    {
        if (isDone)
        {
            return;
        }
        switch (type)
        {
        case InputManager.types.SWIPE_RIGHT:
            SwipeRight();
            break;

        case InputManager.types.SWIPE_LEFT:
            SwipeLeft();
            break;

        case InputManager.types.GATILLO_DOWN:
            if (timer > 4)
            {
                StartCoroutine(Done());
            }
            break;
        }
    }