public void Update() { //direction = inputreader.ReadInput(CanLeft, CanRight); //MoveHorizontal(direction); if (direction != Vector2.Zero) { animatie.Update(); } collisionrectangle.X = (int)Position.X; collisionrectangle.Y = (int)Position.Y; CollisionRectangle = collisionrectangle; }
public void Update() { animatie.Update(); }