I see that there's a way to get each animation clip like the following, but is there a way to get all of the animations in a given project and play/stop them at the same time?
public class Anim: MonoBehaviour {
protected Animation anim;
// Use this for initialization
void Start () {
anim = GetComponent<Animation>();
}
void PlayAnimation
{
if ()//some sort of condition
{
anim.Play ("Roll Dice");
}
else {
anim.Stop();
}
}