hch
2025-09-02 537670a1e4dbdf26af45356a2f01c69a8d7dfee7
Main/Component/UI/Effect/UIEffectPlayer.cs
@@ -14,18 +14,18 @@
    
    //spine里的第几个动画
    public void Play(int index, bool showLog = true)
    public void Play(int index, bool showLog = true, bool closePMA = false)
    {
        playSpineAnimIndex = index;
        PlayAsync(showLog).Forget();
        PlayAsync(showLog, closePMA).Forget();
    }
    //配置动画组数组索引
    public void PlayByArrIndex(int index, bool showLog = true)
    public void PlayByArrIndex(int index, bool showLog = true, bool closePMA = false)
    {
        var config = EffectConfig.Get(effectId);
        playSpineAnimIndex = config.animIndex[index];
        PlayAsync(showLog).Forget();
        PlayAsync(showLog, closePMA).Forget();
    }
@@ -48,6 +48,5 @@
        effectPlayer.SetActive(true);
        return effectPlayer;
    }
}