Example #1
0
 public AnimationPlayer GetAnimationPlayer(LayeredSprites.LayerStack stack)
 {
     foreach (Animation animation in AnimationLibrary.LoadNewLayeredAnimationFormat(ContentPaths.dwarf_animations))
     {
         if (animation.Name == "IdleFORWARD")
         {
             return(new AnimationPlayer(stack.ProxyAnimation(animation)));
         }
     }
     return(null);
 }
Example #2
0
 public AnimationPlayer GetAnimationPlayer(LayeredSprites.LayerStack stack, String Anim = "IdleFORWARD")
 {
     foreach (var animation in Library.LoadNewLayeredAnimationFormat(ContentPaths.dwarf_animations))
     {
         if (animation.Key == Anim)
         {
             return(new AnimationPlayer(stack.ProxyAnimation(animation.Value)));
         }
     }
     return(null);
 }