static int SetAutoKill(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(ToLua_DG_Tweening_Tween))) { ToLua_DG_Tweening_Tween obj = (ToLua_DG_Tweening_Tween)ToLua.ToObject(L, 1); DG.Tweening.Tween o = obj.SetAutoKill(); ToLua.PushObject(L, o); return(1); } else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(ToLua_DG_Tweening_Tween), typeof(bool))) { ToLua_DG_Tweening_Tween obj = (ToLua_DG_Tweening_Tween)ToLua.ToObject(L, 1); bool arg0 = LuaDLL.lua_toboolean(L, 2); DG.Tweening.Tween o = obj.SetAutoKill(arg0); ToLua.PushObject(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: ToLua_DG_Tweening_Tween.SetAutoKill")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }