static int Awake(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Mono_Singleton <TimeHelper> obj = (Mono_Singleton <TimeHelper>)ToLua.CheckObject(L, 1, typeof(Mono_Singleton <TimeHelper>)); obj.Awake(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetInstanceWithOutCreate(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); TimeHelper o = Mono_Singleton <TimeHelper> .GetInstanceWithOutCreate(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }