public static void Run(AnimatorControl control) { mControl = control; if (mControl.IsNull()) { return; } if (mControl.Animator == null) { mControl.Reset(); } AnimatorController animatorController = mControl.Animator.runtimeAnimatorController as AnimatorController; if (animatorController != null) { AnimatorStateMachine stateMachine = animatorController.layers[0].stateMachine; List <string> nameList = new List <string>(); List <int> hashList = new List <int>(); GetValue(stateMachine, nameList, hashList, stateMachine.name); CheckHaveBehaviour(stateMachine); mControl.FullStateName = nameList.ToArray(); mControl.FullStateNameHash = hashList.ToArray(); } }