static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Framework.MonoSingleton <Framework.LuaMgr> obj = (Framework.MonoSingleton <Framework.LuaMgr>)ToLua.CheckObject <Framework.MonoSingleton <Framework.LuaMgr> >(L, 1); obj.Init(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int UpdateEx(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Framework.MonoSingleton <Framework.LuaMgr> obj = (Framework.MonoSingleton <Framework.LuaMgr>)ToLua.CheckObject <Framework.MonoSingleton <Framework.LuaMgr> >(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.UpdateEx(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Init(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("Framework.MonoSingleton<Framework.ResourceMgr>.Init"); #endif try { ToLua.CheckArgsCount(L, 1); Framework.MonoSingleton <Framework.ResourceMgr> obj = (Framework.MonoSingleton <Framework.ResourceMgr>)ToLua.CheckObject <Framework.MonoSingleton <Framework.ResourceMgr> >(L, 1); obj.Init(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_ApplicationIsPlaying(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("Framework.MonoSingleton<Framework.LuaMgr>.ApplicationIsPlaying"); #endif object o = null; try { o = ToLua.ToObject(L, 1); Framework.MonoSingleton <Framework.LuaMgr> obj = (Framework.MonoSingleton <Framework.LuaMgr>)o; bool ret = obj.ApplicationIsPlaying; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ApplicationIsPlaying on a nil value")); } }