private static int SetTweenPositionInfoByTweenGroup(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 6); GameObject go = (GameObject)ToLua.CheckUnityObject(L, 1, typeof(GameObject)); int tweenGroup = (int)LuaDLL.luaL_checknumber(L, 2); Vector3 from = ToLua.ToVector3(L, 3); Vector3 to = ToLua.ToVector3(L, 4); float duration = (float)LuaDLL.luaL_checknumber(L, 5); float delay = (float)LuaDLL.luaL_checknumber(L, 6); TweenUtil.SetTweenPositionInfoByTweenGroup(go, tweenGroup, from, to, duration, delay); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }