static int SetSpeedBased(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 1) { DG.Tweening.Tween obj = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween"); DG.Tweening.Tween o = obj.SetSpeedBased(); LuaScriptMgr.PushObject(L, o); return(1); } else if (count == 2) { DG.Tweening.Tween obj = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween"); bool arg0 = LuaScriptMgr.GetBoolean(L, 2); DG.Tweening.Tween o = obj.SetSpeedBased(arg0); LuaScriptMgr.PushObject(L, o); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: DG.Tweening.Tween.SetSpeedBased"); } return(0); }
static int SetSpeedBased(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1); DG.Tweening.Tween o = obj.SetSpeedBased(); ToLua.PushObject(L, o); return(1); } else if (count == 2) { DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); DG.Tweening.Tween o = obj.SetSpeedBased(arg0); ToLua.PushObject(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Tween.SetSpeedBased")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }