| | |
| | | var agent = this.gameObject.GetComponent<Agent>(); |
| | | if (agent == null) |
| | | return; |
| | | |
| | | |
| | | BallisticProjectile ballistic = c.gameObject.GetComponent<BallisticProjectile>(); |
| | | |
| | | if (ballistic.IsHitEnemy) |
| | |
| | | LazyLoad(); |
| | | |
| | | BallisticAttack ballisticAttack = damager.GetComponent<BallisticAttack>(); |
| | | ballisticAttack.DealDamage((Targetable)damageableBehaviour); |
| | | ballisticAttack.DealDamage((Targetable)damageableBehaviour, ballisticAttack.attributeId); |
| | | |
| | | damager.HasDamaged(c.transform.position, damageableBehaviour.configuration.alignmentProvider); |
| | | } |