From 711adf82a1475400d64cf17c3e93fb54d110ec3c Mon Sep 17 00:00:00 2001 From: Lihao7788 <2470304407@qq.com> Date: Mon, 7 Apr 2025 09:05:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=8B=E8=BD=ACTimetipbug,?= =?UTF-8?q?=E4=BF=AE=E6=94=B9pig6=E6=B6=88=E6=AF=92=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UI/UITimeTip.cs | 5 +++++ Data/Xml/Pig6.xml | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/UI/UITimeTip.cs b/Assets/Scripts/UI/UITimeTip.cs index 8952af93..950802a6 100644 --- a/Assets/Scripts/UI/UITimeTip.cs +++ b/Assets/Scripts/UI/UITimeTip.cs @@ -43,6 +43,9 @@ namespace QFramework.Example mData = uiData as UITimeTipData ?? new UITimeTipData(); // please add init code here TypeEventSystem.Global.Register((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject); + + transform.rotation = Quaternion.identity; + } private void Update() @@ -73,6 +76,8 @@ namespace QFramework.Example protected override void OnOpen(IUIData uiData = null) { + + mData = uiData as UITimeTipData ?? new UITimeTipData(); index = 0; isRun = true; diff --git a/Data/Xml/Pig6.xml b/Data/Xml/Pig6.xml index dcf34e10..56d12188 100644 --- a/Data/Xml/Pig6.xml +++ b/Data/Xml/Pig6.xml @@ -297,8 +297,7 @@ - - +