Exemple #1
0
    public void OnPointerUp()
    {
        pressTime = 0.0f;
        isPress   = false;

        if (storyManager.isWaitStoryStarted || storyManager.isLineRead || storyManager.isFading || isWaitTap)
        {
            return;
        }

        StartCoroutine(WaitTap(0.25f));

        switch (storyManager.state)
        {
        case StoryManager.STATE.READTEXT:
            if (!isLongPress)
            {
                storyManager.LineTextShowAll();
            }
            break;

        case StoryManager.STATE.WAIT_NEXT:
            nextButton.SetActive(false);
            storyManager.state = StoryManager.STATE.READTEXT;
            AudioManager.Instance.PlaySE(AudioName.AudioNameManager.SE_SE_NEXTBUTTON);
            AudioManager.Instance.PlaySE(AudioName.AudioNameManager.SE_SE_NEXTBUTTON);
            storyManager.CommandNewLine();
            break;
        }
        isLongPress = false;

        if (skippingButton.gameObject.activeInHierarchy)
        {
            skippingButton.gameObject.SetActive(false);
        }
    }