| | |
| | | |
| | | if (m_FoTransMit.ammoEffectId > 0) |
| | | { |
| | | SFXController _sfx = SFXPlayUtility.Instance.PlayBattleEffect(m_FoTransMit.ammoEffectId, _fight); |
| | | if (_sfx) |
| | | if (BattleEffectPlayRule.Instance.CanPlay(m_InitInfo.casterServerObjID)) |
| | | { |
| | | _sfx.duration = m_FoTransMit.eachLastTime; |
| | | FoTransmitController _controller = _sfx.AddMissingComponent<FoTransmitController>(); |
| | | _controller.start = _start; |
| | | _controller.end = _end; |
| | | _controller.transmit = _sfx; |
| | | _controller.enabled = true; |
| | | _sfx.m_OnFinished += OnSFXDisable; |
| | | SFXController _sfx = SFXPlayUtility.Instance.PlayBattleEffect(m_FoTransMit.ammoEffectId, _fight); |
| | | if (_sfx) |
| | | { |
| | | _sfx.duration = m_FoTransMit.eachLastTime; |
| | | FoTransmitController _controller = _sfx.AddMissingComponent<FoTransmitController>(); |
| | | _controller.start = _start; |
| | | _controller.end = _end; |
| | | _controller.transmit = _sfx; |
| | | _controller.enabled = true; |
| | | _sfx.m_OnFinished += OnSFXDisable; |
| | | |
| | | m_CacheAllEffect.Add(_sfx); |
| | | m_CacheAllEffect.Add(_sfx); |
| | | } |
| | | //Debug.LogFormat("播放特效: 开始: {0}, 结束: {1}", _start, _end); |
| | | } |
| | | |
| | | //Debug.LogFormat("播放特效: 开始: {0}, 结束: {1}", _start, _end); |
| | | } |
| | | |
| | | if (_target2 != null) |