Adds an Animation component to a Sprite and populates it based on the given config.
The sprite to add an Animation component to.
The animation config.
Adds an Animation component to a Sprite and populates it based on the given config.