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