private void OnTankFire(Vector3 fireDirection, Vector3 target, float force) { var bullet = _bulletPool.GetBullet(); bullet.Fire(fireDirection, target, force); bullet.Hit += OnBulletHit; BulletStarted.SafeRaise(bullet); }
private void OnMakedFire(IWeaponOutsideComponent weapon, Vector3 target, float force) { var bullet = _bulletPool.GetBullet(); bullet.Fire(weapon.GunPos, target, force); bullet.Hitted += OnBulletHitted; BulletStarted.SafeRaise(bullet); }