// This state predetermines all of the trial's task parameters, // resets task objects, and prepares the cue. // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { animator.ResetTrigger("TrialOver"); ExperimentController expControl = ExperimentController.instance; expControl.EndTrial(); }