// TODO: permettre un callback lorsque l'animation est terminée
 public void Play(Anims nextAnimation)
 {
     if (currentAnimation.name == nextAnimation)
     {
         return;
     }
     currentAnimation  = animations.First(a => a.name == nextAnimation);
     currentFrameIndex = 0;
     loopCount         = 0;
 }
 // Start is called before the first frame update
 void Start()
 {
     spriteRenderer    = GetComponent <SpriteRenderer>();
     nextFrameCoolDown = animationFrameDuration;
     currentAnimation  = animations[0];
 }