Пример #1
0
    public void Construct(SignalBus signalBus, Settings settings, GameInput input, Bullet.Pool bulletPool)
    {
        _signalBus  = signalBus;
        _settings   = settings;
        _input      = input;
        _bulletPool = bulletPool;

        _rigidbody = GetComponent <Rigidbody2D>();
        _transform = transform;
        _signalBus.Fire(new WeaponChangedSignal()
        {
            NewWeapon = _settings.weapons[_weaponIdx].name
        });
    }
Пример #2
0
 public BulletManager(Bullet.Pool bulletPool)
 {
     _bulletPool = bulletPool;
 }