private void InvokeAnimationComplete(AnimationCompleteArgs args) { if (AnimationComplete != null) { AnimationComplete(this, args); } }
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. } }