static int DOKill(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { UnityEngine.TrailRenderer obj = (UnityEngine.TrailRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.TrailRenderer)); int o = obj.DOKill(); LuaDLL.lua_pushinteger(L, o); return(1); } else if (count == 2) { UnityEngine.TrailRenderer obj = (UnityEngine.TrailRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.TrailRenderer)); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); int o = obj.DOKill(arg0); LuaDLL.lua_pushinteger(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.TrailRenderer.DOKill")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }