static int SetTarget(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { FairyGUI.GTweener obj = (FairyGUI.GTweener)ToLua.CheckObject <FairyGUI.GTweener>(L, 1); object arg0 = ToLua.ToVarObject(L, 2); FairyGUI.GTweener o = obj.SetTarget(arg0); ToLua.PushObject(L, o); return(1); } else if (count == 3) { FairyGUI.GTweener obj = (FairyGUI.GTweener)ToLua.CheckObject <FairyGUI.GTweener>(L, 1); object arg0 = ToLua.ToVarObject(L, 2); FairyGUI.TweenPropType arg1 = (FairyGUI.TweenPropType)ToLua.CheckObject(L, 3, typeof(FairyGUI.TweenPropType)); FairyGUI.GTweener o = obj.SetTarget(arg0, arg1); ToLua.PushObject(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.GTweener.SetTarget")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }