Main/Component/UI/Effect/UIEffectPlayer.cs
@@ -22,6 +22,8 @@ int playSpineAnimIndex = -1; //播放spine特效动画索引, protected override void OnEnable() { playSpineAnimIndex = -1; @@ -31,13 +33,17 @@ } else if (spineComp != null) { if (!isPlaying) { //隐藏,会有静态显示问题 spineComp.enabled = false; } } } public override void Play(bool showLog = true) { isPlaying = true; if (!isInit) { InitComponent(showLog); @@ -171,6 +177,7 @@ if (!isPlaySpineLoop) { spineComp.enabled = false; isPlaying = false; if (isReleaseImmediately) { Stop(); @@ -204,4 +211,5 @@ return effectPlayer; } }