Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 void IBulletManager.AddWeapon(IWeaponOutsideComponent component)
 {
     component.MakedFire += OnMakedFire;
 }
Exemplo n.º 3
0
 void IBulletManager.RemoveWeapon(IWeaponOutsideComponent component)
 {
     component.MakedFire -= OnMakedFire;
 }
Exemplo n.º 4
0
        private void OnPlayerMakedFire(IWeaponOutsideComponent weapon, Vector3 target, float force)
        {
            var message = new BulletStartedMsg(target, force);

            Client.Send(message);
        }