static int OnUpdate(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes <FairyGUI.GTweenCallback1>(L, 2)) { FairyGUI.GTweener obj = (FairyGUI.GTweener)ToLua.CheckObject <FairyGUI.GTweener>(L, 1); FairyGUI.GTweenCallback1 arg0 = (FairyGUI.GTweenCallback1)ToLua.ToObject(L, 2); FairyGUI.GTweener o = obj.OnUpdate(arg0); ToLua.PushObject(L, o); return(1); } else if (count == 2 && TypeChecker.CheckTypes <FairyGUI.GTweenCallback>(L, 2)) { FairyGUI.GTweener obj = (FairyGUI.GTweener)ToLua.CheckObject <FairyGUI.GTweener>(L, 1); FairyGUI.GTweenCallback arg0 = (FairyGUI.GTweenCallback)ToLua.ToObject(L, 2); FairyGUI.GTweener o = obj.OnUpdate(arg0); ToLua.PushObject(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.GTweener.OnUpdate")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnUpdate(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.GTweener obj = (FairyGUI.GTweener)ToLua.CheckObject <FairyGUI.GTweener>(L, 1); FairyGUI.GTweenCallback1 arg0 = (FairyGUI.GTweenCallback1)ToLua.CheckDelegate <FairyGUI.GTweenCallback1>(L, 2); FairyGUI.GTweener o = obj.OnUpdate(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }