| | |
| | | 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); |
| | | } |