public IEnumerator PlayMotionCoroutine(string motion) { float[][] motionFrameData = motionData.GetMotionFrameDataWithName(motion); if (motionFrameData != null) { currentGesture = motion; if (behaviorRecorder) { behaviorRecorder.RecordBehavior(new RecordEvent(0, motion)); } yield return(StartCoroutine("GestureProcess", motionFrameData)); } else { Debug.Log("motion null, " + motion); currentGesture = string.Empty; } }