Exemple #1
0
 static int OnUpdate(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UI.HandleScale obj  = (UI.HandleScale)ToLua.CheckObject(L, 1, typeof(UI.HandleScale));
         UI.Handle      arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle));
         float          arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         obj.OnUpdate(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }