hch
82 分钟以前 acab2a61380638fd374ad2d0a5d4caff84aa7cdc
Main/Component/UI/Effect/UIEffectPlayer.cs
@@ -12,20 +12,20 @@
public class UIEffectPlayer : EffectPlayer
{
    //spine里的第几个动画
    public void Play(int index, bool showLog = true)
    //spine里的第几个动画,!!closePMA参数无效暂时留着
    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();
        playSpineAnimIndex = index < config.animIndex.Length ? config.animIndex[index] : 0;
        PlayAsync(showLog, closePMA).Forget();
    }
@@ -50,4 +50,12 @@
    }
   public void SetEnabled(bool isEnable)
   {
      if (spineComp == null)
      {
         return;
      }
      spineComp.enabled = isEnable;
   }
}