Just a suggestion. Should not use arrays to pull the animations in this way else errors can occur if someone is using custom animations including Mixamo packs applied to a separate model. Using AnimationClip variables would be better, and universal for any model. This way only supports the animations imported within the model. Good programming otherwise, good job brother.