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