From a94aff52fcc60a82182062c2353c8ec55f9c53a8 Mon Sep 17 00:00:00 2001 From: yangqingming Date: Fri, 18 Jun 2021 15:10:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ui=E6=89=93=E5=BC=80=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E4=BA=8B=E4=BB=B6=20uiform=20=E4=B8=BA=20IUIForm?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/Runtime/UI/OpenUIFormSuccessEventArgs.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Scripts/Runtime/UI/OpenUIFormSuccessEventArgs.cs b/Scripts/Runtime/UI/OpenUIFormSuccessEventArgs.cs index 3a7fa016..b69001ff 100644 --- a/Scripts/Runtime/UI/OpenUIFormSuccessEventArgs.cs +++ b/Scripts/Runtime/UI/OpenUIFormSuccessEventArgs.cs @@ -7,6 +7,7 @@ using GameFramework; using GameFramework.Event; +using GameFramework.UI; namespace UnityGameFramework.Runtime { @@ -44,7 +45,7 @@ public override int Id /// /// 获取打开成功的界面。 /// - public UIForm UIForm + public IUIForm UIForm { get; private set; @@ -76,7 +77,7 @@ public object UserData public static OpenUIFormSuccessEventArgs Create(GameFramework.UI.OpenUIFormSuccessEventArgs e) { OpenUIFormSuccessEventArgs openUIFormSuccessEventArgs = ReferencePool.Acquire(); - openUIFormSuccessEventArgs.UIForm = (UIForm)e.UIForm; + openUIFormSuccessEventArgs.UIForm = (IUIForm)e.UIForm; openUIFormSuccessEventArgs.Duration = e.Duration; openUIFormSuccessEventArgs.UserData = e.UserData; return openUIFormSuccessEventArgs;