コード例 #1
0
    public void setNextTutorial(int currentOrder)
    {
        // get the next tutorial
        currentTutorial = getTutorialByOrder(currentOrder);

        if (!currentTutorial)
        {
            // finished all tutorials
            completedAllTutorials();
            return;
        }

        explanationText.text = currentTutorial.explanation;

        if (currentTutorial.displayTutorialTimer > 0.0f)
        {
            st = new SimpleTimer(null, currentTutorial.displayTutorialTimer);
            StartCoroutine(st.DisplayTutorial());
        }
        else
        {
            // not using the timer to control tutorial display
            displayTutorial = true;
        }
    }