chenxin
2020-11-07 d35d31d85fd4b827dc37008aef39c019b6a7781d
Assets/Scripts/ActionGameFramework/Health/DamageCollider.cs
@@ -55,10 +55,20 @@
            if (agent == null)
                return;
            BallisticProjectile ballistic = c.gameObject.GetComponent<BallisticProjectile>();
            if (ballistic.IsHitEnemy)
            {
                Debug.Log("--------------------- 已发生过碰撞 ---------------------");
                return;
            }
            ballistic.IsHitEnemy = true;
            LazyLoad();
            BallisticAttack ballisticAttack = damager.GetComponent<BallisticAttack>();
            ballisticAttack.DealDamage((Targetable)damageableBehaviour);
            ballisticAttack.DealDamage((Targetable)damageableBehaviour, ballisticAttack.attributeId);
            damager.HasDamaged(c.transform.position, damageableBehaviour.configuration.alignmentProvider);
        }