少年修仙传客户端代码仓库
client_Hale
2018-10-23 546730347fa4aff5009d42122b0ec36bed542e37
2185 闪电链特效残留
3个文件已修改
42 ■■■■ 已修改文件
Fight/Actor/Skill/FlyObject/FlyObject.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Actor/Skill/FlyObject/FoTransmit.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/BattleEffectPlayRule.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Actor/Skill/FlyObject/FlyObject.cs
@@ -84,6 +84,17 @@
            return false;
        }
        PlayEffect();
#if UNITY_EDITOR
        SnxxzGame.Instance.AddOnDrawGizmosAction(OnDrawGizmos);
#endif
        return true;
    }
    protected virtual void PlayEffect()
    {
        m_Ammo = SFXPlayUtility.Instance.Play(m_Config.ammoEffectId, m_Position, m_Direction);
        if (m_Ammo)
        {
@@ -94,12 +105,6 @@
                m_Ammo.transform.forward = m_Direction;
            }
        }
#if UNITY_EDITOR
        SnxxzGame.Instance.AddOnDrawGizmosAction(OnDrawGizmos);
#endif
        return true;
    }
    protected virtual void MovingHitted()
Fight/Actor/Skill/FlyObject/FoTransmit.cs
@@ -31,6 +31,8 @@
        return _result;
    }
    protected sealed override void PlayEffect() { }
    protected sealed override void OnUpdate()
    {
        if (IsOver())
@@ -121,9 +123,22 @@
                                _controller.enabled = true;
                                _sfx.m_OnFinished += OnSFXDisable;
                                if (_start)
                                {
                                    _sfx.transform.position = _start.position;
                                }
                                if (_end)
                                {
                                    _sfx.transform.LookAt(_end.position);
                                }
                                if (_start && _end)
                                {
                                    _sfx.transform.localScale = new Vector3(1, 1, Vector3.Distance(_end.position, _start.position));
                                }
                                m_CacheAllEffect.Add(_sfx);
                            }
                            //Debug.LogFormat("播放特效: 开始: {0}, 结束: {1}", _start, _end);
                            //Debug.LogFormat("播放特效 {2} : 开始: {0}, 结束: {1}", _start, _end, m_FoTransMit.ammoEffectId);
                        }
                    }
@@ -158,7 +173,8 @@
    public sealed override bool IsOver()
    {
        return m_HurtClientList == null
            || m_Index > m_HurtClientList.Count - 1;
            || m_Index > m_HurtClientList.Count - 1
            || GA_Hero.s_MapSwitching;
    }
    private void RecycleAllEffect()
Fight/GameActor/BattleEffectPlayRule.cs
@@ -69,6 +69,11 @@
            return false;
        }
        if(_hero.ServerInstID == sid)
        {
            return true;
        }
        // 选中英雄必显示
        if (_hero.SelectTarget != null)
        {