static int ExitAnim(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); UIWindowBase obj = (UIWindowBase)ToLua.CheckObject(L, 1, typeof(UIWindowBase)); UIAnimCallBack arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (UIAnimCallBack)ToLua.CheckObject(L, 2, typeof(UIAnimCallBack)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(UIAnimCallBack), func) as UIAnimCallBack; } UICallBack arg1 = null; LuaTypes funcType3 = LuaDLL.lua_type(L, 3); if (funcType3 != LuaTypes.LUA_TFUNCTION) { arg1 = (UICallBack)ToLua.CheckObject(L, 3, typeof(UICallBack)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 3); arg1 = DelegateFactory.CreateDelegate(typeof(UICallBack), func) as UICallBack; } object[] arg2 = ToLua.ToParamsObject(L, 4, count - 3); System.Collections.IEnumerator o = obj.ExitAnim(arg0, arg1, arg2); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
//开始调用退出动画 public void StartExitAnim(UIWindowBase UIbase, UICallBack callBack, params object[] objs) { UISystemEvent.Dispatch(UIbase, UIEvent.OnStartExitAnim); StartCoroutine(UIbase.ExitAnim(EndExitAnim, callBack, objs)); }