コード例 #1
0
    //GameObject.FindGameObjectWithTag("Pickup").SetActive(false);


    void OnGUI()
    {
        GUI.Label(new Rect(10, 10, 200, 50), "Lessons collected: " + pickCount.ToString() + " /5");
        if (Lesson1.show)
        {
            Lesson1.lesson1_text(imgTexture);
        }
        if (Lesson1.plan)
        {
            Lesson1.LessonOnePlan(eighth, quarter, half, dotted_half, whole);
        }

        if (Lesson2.lesson2_show)
        {
            Lesson2.lesson2_text(imgTexture2);
        }

        if (Lesson2.lesson2_plan)
        {
            Lesson2.LessonTwoPlan(staff, treble, bass);
        }

        if (Lesson3.lesson3_show)
        {
            Lesson3.lesson3_text(imgTexture3);
        }

        if (Lesson3.lesson3_plan)
        {
            Lesson3.LessonThreePlan(A, B, C, D, E, F, G);
        }
        if (Lesson4.lesson4_show)
        {
            Lesson4.lesson4_text(imgTexture4);
        }

        if (Lesson4.lesson4_plan)
        {
            Lesson4.LessonFourPlan(clefA, clefB, clefC, clefD, clefE, clefF, clefG, clefMC);
        }
        if (Lesson5.lesson5_show)
        {
            Lesson5.lesson5_text(imgTexture5);
        }

        if (Lesson5.lesson5_plan)
        {
            Lesson5.LessonFivePlan(isecond, ithird, ifourth, ififth, isixth, iseventh, ioctave);
        }
    }