static int CreateAssetAsync(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         string arg0 = ToLua.CheckString(L, 1);
         RequestLoadAsset.OnLoadAsset arg1 = (RequestLoadAsset.OnLoadAsset)ToLua.CheckDelegate <RequestLoadAsset.OnLoadAsset>(L, 2);
         int o = ResourceUtil.CreateAssetAsync(arg0, arg1);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #2
0
    public RequestLoadAsset.OnLoadAsset RequestLoadAsset_OnLoadAsset(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            RequestLoadAsset.OnLoadAsset fn = delegate(UnityEngine.Object param0, int param1) { };
            return(fn);
        }

        if (!flag)
        {
            RequestLoadAsset_OnLoadAsset_Event target = new RequestLoadAsset_OnLoadAsset_Event(func);
            RequestLoadAsset.OnLoadAsset       d      = target.Call;
            target.method = d.Method;
            return(d);
        }
        else
        {
            RequestLoadAsset_OnLoadAsset_Event target = new RequestLoadAsset_OnLoadAsset_Event(func, self);
            RequestLoadAsset.OnLoadAsset       d      = target.CallWithSelf;
            target.method = d.Method;
            return(d);
        }
    }
Beispiel #3
0
 public static int CreateAssetAsync(string assetName, RequestLoadAsset.OnLoadAsset onLoadAsset)
 {
     return(RequestLoadAsset.LoadAssetAsync(assetName, onLoadAsset));
 }
Beispiel #4
0
 void Push_RequestLoadAsset_OnLoadAsset(IntPtr L, RequestLoadAsset.OnLoadAsset o)
 {
     ToLua.Push(L, o);
 }