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 @@ - - +