public void Update() { if (State == AnimationState.IsPlaying && location.Y >= endLocationY) { location.Y = location.Y + poleVelocity; location.X = Camera2D.CameraX + cameraXToTextDistance; } textSprite.Update(); }
public void Update() { if (State == AnimationState.IsPlaying) { velocityY = velocityY + accelerationY; location.Y = location.Y + velocityY; location.X = Camera2D.CameraX + cameraXToTextDistance; if (location.Y < endLocationY) { State = AnimationState.Stopped; } } textSprite.Update(); }