free method

void free(
  1. SpriteAnimation animation
)

Implementation

void free(SpriteAnimation animation) {
  animations.removeAt(animations.indexOf(animation));
  //animation.onEnd && animation.onEnd();
}