private static int AlphaUGUI(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 7); GameObject gameObject = (GameObject)ToLua.CheckUnityObject(L, 1, typeof(GameObject)); float to = (float)LuaDLL.luaL_checknumber(L, 2); float time = (float)LuaDLL.luaL_checknumber(L, 3); int type = (int)LuaDLL.luaL_checknumber(L, 4); float delay = (float)LuaDLL.luaL_checknumber(L, 5); LuaFunction finishToDo = ToLua.CheckLuaFunction(L, 6); object para = ToLua.ToVarObject(L, 7); TweenUtil.AlphaUGUI(gameObject, to, time, type, delay, finishToDo, para); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }