Exemple #1
0
 public void Play(string name)
 {
     current = GetByName(name);
     if (current == null)
     {
         GameConsole.Error("No animation named " + name);
     }
     current.Reset();
     AnimationChanged?.Invoke(name);
 }
 /// <summary>
 /// Called when any property of the animation changes
 /// </summary>
 protected void OnAnimationChanged()
 {
     AnimationChanged?.Invoke(this, EventArgs.Empty);
 }
 /// <summary>
 /// Raises the <see cref="E:AnimationChanged"/> event.
 /// </summary>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected virtual void OnAnimationChanged(MarkerEventArgs e)
 {
     AnimationChanged?.Invoke(this, e);
 }