Esempio n. 1
0
 static int ClearClick(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     Teacher.LuaBehaviour obj = (Teacher.LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "Teacher.LuaBehaviour");
     obj.ClearClick();
     return(0);
 }
Esempio n. 2
0
    static int SetLabelColor(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        Teacher.LuaBehaviour obj  = (Teacher.LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "Teacher.LuaBehaviour");
        GameObject           arg0 = (GameObject)LuaScriptMgr.GetUnityObject(L, 2, typeof(GameObject));
        Color arg1 = LuaScriptMgr.GetColor(L, 3);

        obj.SetLabelColor(arg0, arg1);
        return(0);
    }
Esempio n. 3
0
    static int AddClick(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        Teacher.LuaBehaviour obj  = (Teacher.LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "Teacher.LuaBehaviour");
        GameObject           arg0 = (GameObject)LuaScriptMgr.GetUnityObject(L, 2, typeof(GameObject));
        LuaFunction          arg1 = LuaScriptMgr.GetLuaFunction(L, 3);

        obj.AddClick(arg0, arg1);
        return(0);
    }
Esempio n. 4
0
    static int Call(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        Teacher.LuaBehaviour obj = (Teacher.LuaBehaviour)LuaScriptMgr.GetUnityObjectSelf(L, 1, "Teacher.LuaBehaviour");
        string arg0 = LuaScriptMgr.GetLuaString(L, 2);

        object[] objs1 = LuaScriptMgr.GetParamsObject(L, 3, count - 2);
        object[] o     = obj.Call(arg0, objs1);
        LuaScriptMgr.PushArray(L, o);
        return(1);
    }