Arguments for the AnimationEnded event
Inheritance: System.EventArgs
 void Ship_AnimationCompleted(object source, AnimationEndedEventArgs e)
 {
     if (e.Key == "Crash")
     {
         Ship.Visible = false;
     }
 }
Beispiel #2
0
 void AnimationCompleted(object source, AnimationEndedEventArgs e)
 {
     if (e.Key == "Crash")
     {
         CarObject.StartAnimation("Forward");
         _level.Status = RaceStatus.Running;
     }
 }