wangguan
2020-12-15 d4aa0f068ab230df4dc543cf934e1def3a609ec9
Assets/Scripts/ActionGameFramework/Projectiles/BallisticProjectile.cs
@@ -36,8 +36,6 @@
        /// </summary>
        protected Collider[] m_Colliders;
        public bool IsHitEnemy { get; set; }
        public event Action fired;
        /// <summary>
@@ -165,11 +163,12 @@
            m_CollidersIgnoring.Clear();
            IsHitEnemy = false;
            // 因为炮弹没有模型,本身就是一个带碰撞体的粒子特效
            ParticleSystem ps = GetComponent<ParticleSystem>();
            if (ps == null)
                ps = transform.GetChild(0).GetComponent<ParticleSystem>();
            if (ps == null)
                ps = transform.GetChild(0).GetChild(0).GetComponent<ParticleSystem>();
            ps?.Play();
            if (fired != null)