Пример #1
0
 private void InvokeAnimationComplete(AnimationCompleteArgs args)
 {
     if (AnimationComplete != null)
     {
         AnimationComplete(this, args);
     }
 }
Пример #2
0
 private void Marian_AnimationComplete(object sender, AnimationCompleteArgs args)
 {
     if (State == HitBoxState.Dead)
     {
         DieComplete(args.GameTime);
     }
     else if (State == HitBoxState.LevelCompleteAnimation)
     {
         GameCore.Instance.AdvanceLevel();
     }
     else if (State == HitBoxState.GameCompleteAnimation)
     {
         GameCompleteEffects();                 // loop animation forever.
     }
 }