static int OnPause(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1); DG.Tweening.TweenCallback arg0 = (DG.Tweening.TweenCallback)ToLua.CheckDelegate <DG.Tweening.TweenCallback>(L, 2); DG.Tweening.Tween o = obj.OnPause(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnPause(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); DG.Tweening.Tween obj = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween"); DG.Tweening.TweenCallback arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (DG.Tweening.TweenCallback)LuaScriptMgr.GetNetObject(L, 2, typeof(DG.Tweening.TweenCallback)); } else { LuaFunction func = LuaScriptMgr.GetLuaFunction(L, 2); arg0 = () => { func.Call(); }; } DG.Tweening.Tween o = obj.OnPause(arg0); LuaScriptMgr.PushObject(L, o); return(1); }