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();
}
}