public void AddBullet(Vector2 position) { var bullet = new ServerBullet(Guid.NewGuid(), position); _bullets.Add(bullet); _physicsManager.RegisterItem(bullet.Id, new Vector2(32, 48)); }
public void RemoveBullet(ServerBullet bullet) { _bullets.Remove(bullet); _physicsManager.UnregisterItem(bullet.Id); }