public override void Perform(AnimationState state, AnimationMap map) { if (framesWaited == WaitFor) { Finished = true; } else { framesWaited++; } }