コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        if (tutorialList.activeList)
        {
            // step has changed
            if (currStep < tutorialList.GetCurrentStepNumber() && !tutorialList.IsCompleteList())
            {
                currStep++;

                stepText.text = "Step " + tutorialList.GetCurrentStepNumber() + " - " +
                                tutorialList.GetCurrentStep().title + ":\n" + tutorialList.GetCurrentStep().description;
            }
            // if all steps have been completed.
            else if (tutorialList.IsCompleteList())
            {
                string str = "All Steps Completed!";

                if (stepText.text != str)
                {
                    stepText.text = str;
                }
            }
        }
    }