private static int PlayGroupTween(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 4); GameObject go = (GameObject)ToLua.CheckUnityObject(L, 1, typeof(GameObject)); int tweenGroup = (int)LuaDLL.luaL_checknumber(L, 2); bool isForward = LuaDLL.luaL_checkboolean(L, 3); LuaFunction luafunc = ToLua.CheckLuaFunction(L, 4); TweenUtil.PlayGroupTween(go, tweenGroup, isForward, luafunc); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }