public new void update(GameTime gameTime) { bool hasCollided = SceneManager.getInstance.getPlayer1().Properties.getProperty <bool>("HasCollided"); Vector2 velocity = SceneManager.getInstance.getPlayer1().Properties.getProperty <Vector2>("Velocity"); Vector2 position = Properties.getProperty <Vector2>("Position"); if (!hasCollided) { position += velocity * (float)gameTime.ElapsedGameTime.TotalSeconds; } Properties.updateProperty <Vector2>("Position", position); if (containsItem) { item.update(gameTime); } }