spawn bullet closer to tank
This commit is contained in:
parent
e16d4b1c1f
commit
786c974a23
1 changed files with 21 additions and 5 deletions
|
|
@ -4,7 +4,8 @@ internal sealed class BulletManager
|
|||
{
|
||||
private readonly HashSet<Bullet> _bullets = [];
|
||||
|
||||
public void Spawn(Bullet bullet) => _bullets.Add(bullet);
|
||||
public void Spawn(Player tankOwner, FloatPosition position, double rotation)
|
||||
=> _bullets.Add(new Bullet(tankOwner, position, rotation));
|
||||
|
||||
public IEnumerable<Bullet> GetAll() => _bullets;
|
||||
|
||||
|
|
|
|||
Reference in a new issue