public void SetPosition(Vector2 newPosition, TweentType type, int numSteps) { this.positionFrom = position; this.position = newPosition; this.positionGoTo = newPosition; tweenType = type; currentStep = 0; tweenSteps = numSteps; }
public void SetPosition(Vector2 newPosition) { this.position = newPosition; this.positionFrom = newPosition; this.positionGoTo = newPosition; tweenType = TweentType.Instant; currentStep = 0; tweenSteps = 0; }