public void Play(string name)
        {
            if (!currAnimName.Equals(name))
            {
                Animation anim = getAnimation(name);

                if (anim != null)
                {
                    anim.ResetAnimation();
                    currAnimName = name;
                    currAnim = anim;
                }
            }
        }
 public AnimationManager(int rows = 1, int columns = 1)
 {
     this.rows = rows;
     this.columns = columns;
     currAnim = new Animation(new int[]{0});
 }