static int Goto(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.Goto(arg0); return(0); } else if (count == 3) { DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.Goto(arg0, arg1); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Tween.Goto")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Goto(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); DG.Tweening.Tween obj = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween"); float arg0 = (float)LuaScriptMgr.GetNumber(L, 2); bool arg1 = LuaScriptMgr.GetBoolean(L, 3); obj.Goto(arg0, arg1); return(0); }
static int Goto(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject(L, 1, typeof(DG.Tweening.Tween)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.Goto(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }