diff --git a/Assets/QFramework/Toolkits/UIKit/Scripts/UIPanel.cs b/Assets/QFramework/Toolkits/UIKit/Scripts/UIPanel.cs index d99a6250..fbedcf25 100644 --- a/Assets/QFramework/Toolkits/UIKit/Scripts/UIPanel.cs +++ b/Assets/QFramework/Toolkits/UIKit/Scripts/UIPanel.cs @@ -132,11 +132,11 @@ namespace QFramework } -#if VR - private void Update() + public virtual void Update() { +#if VR transform.localEulerAngles = Vector3.zero; - } #endif + } } } \ No newline at end of file diff --git a/Assets/Scripts/UI/UITimeTip.cs b/Assets/Scripts/UI/UITimeTip.cs index 8952af93..57bb3209 100644 --- a/Assets/Scripts/UI/UITimeTip.cs +++ b/Assets/Scripts/UI/UITimeTip.cs @@ -45,8 +45,9 @@ namespace QFramework.Example TypeEventSystem.Global.Register((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject); } - private void Update() + public override void Update() { + base.Update(); if (isRun) { object[] objects = new object[mData.values.Count];