static int AddOnceEvent(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); TimeManager obj = (TimeManager)ToLua.CheckObject <TimeManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4); obj.AddOnceEvent(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }