protected void ApplyEffect(IHitByBullet[] affectedObjects) { for (int i = 0; i < affectedObjects.Length; i++) { IHitByBullet affectedObject = affectedObjects[i]; affectedObject.Hit(baseWeapon); } }
protected void ApplyEffect(IHitByBullet[] affectedObjects, Vector3 point) { for (int i = 0; i < affectedObjects.Length; i++) { IHitByBullet affectedObject = affectedObjects[i]; HitInformation hitInfo = new HitInformation { Weapon = baseWeapon, Bullet = this, Shooter = baseWeapon.Owner, HitPosition = point }; affectedObject.Hit(hitInfo); } }
protected void ApplyEffect(IHitByBullet[] affectedObjects, Vector3 point) { for (int i = 0; i < affectedObjects.Length; i++) { IHitByBullet affectedObject = affectedObjects[i]; HitInformation hitInfo = new HitInformation { Weapon = baseWeapon, Bullet = this, Shooter = baseWeapon.Owner, HitPosition = point }; affectedObject.Hit(hitInfo); } }