Ejemplo n.º 1
0
 static int LoadResAsync(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         string arg0 = ToLua.CheckString(L, 1);
         System.Action <UnityEngine.Object> arg1 = (System.Action <UnityEngine.Object>)ToLua.CheckDelegate <System.Action <UnityEngine.Object> >(L, 2);
         CAssetManager.LoadResAsync(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 2
0
 static int LoadResAsync(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         CAssetManager obj  = (CAssetManager)ToLua.CheckObject <CAssetManager>(L, 1);
         string        arg0 = ToLua.CheckString(L, 2);
         System.Action <UnityEngine.Object> arg1 = (System.Action <UnityEngine.Object>)ToLua.CheckDelegate <System.Action <UnityEngine.Object> >(L, 3);
         bool arg2 = LuaDLL.luaL_checkboolean(L, 4);
         obj.LoadResAsync(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }