public void Update(GameTime gameTime) { var direction = inputReader.ReadInput(); MoveHorizontal(direction); if (inputReader.ReadFollower()) { Move(mouseReader.ReadInput()); } animatie.Update(gameTime); }
public void Update(GameTime gameTime) { var direction = inputReader.ReadInput(); MoveHorizontal(direction); if (inputReader.ReadFollower()) { Move(mouseReader.ReadInput()); } //animatie.Update(gameTime); currentAnimation.Update(gameTime); _collisionRectangle.X = (int)Position.X; CollisionRectangle = _collisionRectangle; }