コード例 #1
0
 public void Update()
 {
     if (State == AnimationState.IsPlaying && location.Y >= endLocationY)
     {
         location.Y = location.Y + poleVelocity;
         location.X = Camera2D.CameraX + cameraXToTextDistance;
     }
     textSprite.Update();
 }
コード例 #2
0
 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();
 }