修改timeTip

This commit is contained in:
李浩 2025-04-07 09:35:19 +08:00
parent 84345fda5d
commit f027737751
2 changed files with 188 additions and 73 deletions

File diff suppressed because one or more lines are too long

View File

@ -43,8 +43,11 @@ namespace QFramework.Example
mData = uiData as UITimeTipData ?? new UITimeTipData();
// please add init code here
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
transform.rotation = Quaternion.identity;
transform.localRotation = Quaternion.identity;
transform.eulerAngles = Vector3.zero;
transform.localEulerAngles = Vector3.zero;
}
@ -77,8 +80,9 @@ namespace QFramework.Example
protected override void OnOpen(IUIData uiData = null)
{
transform.rotation = Quaternion.identity;
transform.localRotation = Quaternion.identity;
transform.eulerAngles = Vector3.zero;
transform.localEulerAngles = Vector3.zero;
mData = uiData as UITimeTipData ?? new UITimeTipData();
index = 0;
isRun = true;
@ -137,7 +141,10 @@ namespace QFramework.Example
protected override void OnShow()
{
transform.rotation = Quaternion.identity;
transform.localRotation = Quaternion.identity;
transform.eulerAngles = Vector3.zero;
transform.localEulerAngles = Vector3.zero;
}
protected override void OnHide()
@ -152,6 +159,10 @@ namespace QFramework.Example
imgTwen.Kill();
imgTwen = null;
}
transform.rotation = Quaternion.identity;
transform.localRotation = Quaternion.identity;
transform.eulerAngles = Vector3.zero;
transform.localEulerAngles = Vector3.zero;
}
protected override void OnClose()