コード例 #1
0
 static int AddProxy(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Framework.ResourceMgr obj  = (Framework.ResourceMgr)ToLua.CheckObject <Framework.ResourceMgr>(L, 1);
         Framework.AssetProxy  arg0 = (Framework.AssetProxy)ToLua.CheckObject <Framework.AssetProxy>(L, 2);
         obj.AddProxy(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
    static int AddProxy(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.ResourceMgr.AddProxy");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 2);
            Framework.ResourceMgr obj  = (Framework.ResourceMgr)ToLua.CheckObject <Framework.ResourceMgr>(L, 1);
            Framework.AssetProxy  arg0 = (Framework.AssetProxy)ToLua.CheckObject <Framework.AssetProxy>(L, 2);
            obj.AddProxy(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }