Update UIHolderObjectBase.cs

This commit is contained in:
陈思海 2025-10-14 20:34:00 +08:00
parent 6284f33de6
commit 522c8802ae

View File

@ -25,6 +25,7 @@ namespace AlicizaX.UI.Runtime
{ {
AnimationFlow = transform.GetComponent<AnimationFlow.Runtime.AnimationFlow>(); AnimationFlow = transform.GetComponent<AnimationFlow.Runtime.AnimationFlow>();
} }
await AnimationFlow.PlayAsync(name); await AnimationFlow.PlayAsync(name);
} }
#endif #endif
@ -63,6 +64,9 @@ namespace AlicizaX.UI.Runtime
private void Awake() private void Awake()
{ {
_target = gameObject; _target = gameObject;
#if ALICIZAX_UI_ANIMATION_SUPPORT
AnimationFlow = GetComponent<AnimationFlow.Runtime.AnimationFlow>();
#endif
} }
private bool IsAlive = true; private bool IsAlive = true;