Esempio n. 1
0
        static void MyLesson5Examples()
        {
            Lesson5 myFive = new Lesson5();

            myFive.ConvertFloatToInt();
            myFive.LongFromInt();
        }
Esempio n. 2
0
        } // end method my lesson 6 examples

        static void MyLesson5Examples()
        {
            Lesson5 myFive = new Lesson5();

            myFive.ConvertFloatToInt();
            myFive.LongFromInt();
        } // end method my lessons 5 examples
Esempio n. 3
0
        } // end method my lesson 11 examples

        static void MyLesson10Examples()
        {
            Lesson10 myTen = new Lesson10();

            myTen.BasicPublicMethod();
            Lesson5 myFive = new Lesson5();

            myFive._myLongValue = 12345L; // can see because internal
        } // end lesson 10 examples
    //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);
        }
    }
Esempio n. 5
0
 static int RefOutFun(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         Lesson5 obj  = (Lesson5)ToLua.CheckObject <Lesson5>(L, 1);
         int     arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         int     arg1;
         int     arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
         int     o    = obj.RefOutFun(arg0, out arg1, ref arg2);
         LuaDLL.lua_pushinteger(L, o);
         LuaDLL.lua_pushinteger(L, arg1);
         LuaDLL.lua_pushinteger(L, arg2);
         return(3);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 6
0
    static int _CreateLesson5(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                Lesson5 obj = new Lesson5();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Lesson5.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Pickup"))
     {
         other.gameObject.SetActive(false);
         pickCount += 1;
         PlayerMovement.MovementBool();
         Lesson1.showInventory();
     }
     else if (other.CompareTag("Pickup2"))
     {
         other.gameObject.SetActive(false);
         pickCount += 1;
         PlayerMovement.MovementBool();
         Lesson2.showInventory();
     }
     if (other.CompareTag("Pickup3"))
     {
         other.gameObject.SetActive(false);
         pickCount += 1;
         PlayerMovement.MovementBool();
         Lesson3.showInventory();
     }
     if (other.CompareTag("Pickup4"))
     {
         other.gameObject.SetActive(false);
         pickCount += 1;
         PlayerMovement.MovementBool();
         Lesson4.showInventory();
     }
     if (other.CompareTag("Pickup5"))
     {
         other.gameObject.SetActive(false);
         pickCount += 1;
         PlayerMovement.MovementBool();
         Lesson5.showInventory();
     }
 }