Adds a named animation clip to a game object. Optionally specify first and last frames, and whether to add an extra looping frame to match the first frame.
Game Object
The game object. If it doesn't have an Animation component, one will be added.
Animation Clip
The animation clip to add to the object.
Animation Name
The animation name - used by other animation actions.
First Frame
Optionally trim the animation by setting first and last frames.
Last Frame
Last frame of the trimmed animation.
Add Loop Frame
Add a frame at the end of the trimmed clip that's the same as the first frame so it loops nicely.