diff --git a/Assets/Scripts/UI/UIInstruction.cs b/Assets/Scripts/UI/UIInstruction.cs index 2339eea9..955a7bbe 100644 --- a/Assets/Scripts/UI/UIInstruction.cs +++ b/Assets/Scripts/UI/UIInstruction.cs @@ -92,7 +92,11 @@ namespace QFramework.Example protected override void OnHide() { mData = null; - StringEventSystem.Global.Send(this.GetType().Name + "Hide"); + // 防止后面紧接着的Action接收不到此消息 延迟0.1秒发送 + ActionKit.Delay(0.1f, () => + { + StringEventSystem.Global.Send(this.GetType().Name + "Hide"); + }).StartGlobal(); } protected override void OnClose()