| | |
| | | { |
| | | |
| | | |
| | | //spine里的第几个动画 |
| | | //spine里的第几个动画,!!closePMA参数无效暂时留着 |
| | | public void Play(int index, bool showLog = true, bool closePMA = false) |
| | | { |
| | | playSpineAnimIndex = index; |
| | |
| | | public void PlayByArrIndex(int index, bool showLog = true, bool closePMA = false) |
| | | { |
| | | var config = EffectConfig.Get(effectId); |
| | | playSpineAnimIndex = config.animIndex[index]; |
| | | playSpineAnimIndex = index < config.animIndex.Length ? config.animIndex[index] : 0; |
| | | PlayAsync(showLog, closePMA).Forget(); |
| | | } |
| | | |
| | |
| | | return effectPlayer; |
| | | } |
| | | |
| | | |
| | | public void SetEnabled(bool isEnable) |
| | | { |
| | | if (spineComp == null) |
| | | { |
| | | return; |
| | | } |
| | | spineComp.enabled = isEnable; |
| | | } |
| | | } |