Inheritance: UpdatableObject
Exemple #1
0
 public void Update(AnimationMap map)
 {
     stepActions[currentStepAction].Perform(this, map);
     if (stepActions[currentStepAction].Finished)
     {
         if (jumpPoint != -1)
         {
             currentStepAction = jumpPoint;
             jumpPoint         = -1;
         }
         else
         {
             currentStepAction += direction;
         }
         CheckForLoop();
     }
 }
 public void Update(AnimationMap map)
 {
     stepActions[currentStepAction].Perform(this, map);
     if (stepActions[currentStepAction].Finished)
     {
         if (jumpPoint != -1)
         {
             currentStepAction = jumpPoint;
             jumpPoint = -1;
         }
         else
         {
             currentStepAction += direction;
         }
         CheckForLoop();
     }
 }