public void Fire() { Bullet bullet = new Bullet(_bulletTexture); bullet.SetColor(new Color(0, 1, 0, 1)); bullet.SetPosition(_sprite.GetPosition() + _gunOffset); _bulletManager.Shoot(bullet); }
public void Shoot(Bullet bullet) { _bullets.Add(bullet); }