I'm trying to figure out how to get a reference to the "Animations" array that the Animation component holds onto.
You can set this up in the Editor to hold more than just your default clip, and you can gain access to these clips in a variety of ways. You can animation.GetClipCount to find out how many are in there, you can play an animation directly by inputting a string of the animation's name: animation.Play("NewAnimation"), but I cannot figure out how to access the animation clip simply by it's position in the array.
I can't seem to find any reference as to how to get to the "Animations" array nor how to play a clip by any method besides using a string or adding the clip to the array.
Seems like there should be. Using MonoDevelop and the auto-field (whatever that's called) looks like there's some undocumented things. Animation.GetClip("clipname") for instance. You might poke around there. How to get a list of clip names, I don't know. You might need to use Reflection