hch
2025-08-15 7bd85eb8d0b9664f4645534b42c82ab0f32754d3
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;
    }
}