private void GoTo(int point) { int position = (int)this.Position.X; if (position < point) { direction = Constants.DirectionX.Right; state = Constants.PlatformState.Moving; } else if (position > point) { direction = Constants.DirectionX.Left; state = Constants.PlatformState.Moving; } }
public void CalculateBoundingBoxOffsets(Point boundingBoxSize, Constants.DirectionX animationDirection) { calculateBoundingBoxOffsets = true; this.boundingBoxSize = boundingBoxSize; this.animationDirection = animationDirection; }