Einheit, wie man Index des Enum überprüft

int index = Array.IndexOf(Enum.GetValues(typeof(AnimatorControllerParameterType)), AnimatorControllerParameterType.Bool);
Sore Sloth