public void RecordBehavior()
        {
            if (!isRecording)
            {
                return;
            }

            RecordData newData = new RecordData();

            newData.quizTitle     = quizStatusManager.QuizTitle;
            newData.quizType      = surveyController.GetQuizType;
            newData.age           = surveyController.GetAge;
            newData.gender        = surveyController.GetGender;
            newData.quizNumber    = surveyController.GetCurrentStep();
            newData.elapsedTime   = mainTimer.GetElapsedTime;
            newData.contentState  = quizStatusManager.GetCurrentState().ToString();
            newData.answer        = quizStatusManager.GetAnswerState.ToString();
            newData.modelType     = quizStatusManager.GetModelType.ToString();
            newData.eyePosition   = TobbiManager.Instance.GetEyePoint;
            newData.robotPosition = robotMovement.transform.position;
            newData.robotState    = robotMovement.GetRobotState.ToString();
            newData.targetRegion  = GetTargetRegion.ToString();
            newData.face          = facialRenderer.currentFace;
            newData.gesture       = gestureController.currentGesture;

            saveData.AddData(newData);
        }
        public void AddData(RecordData data)
        {
            if (recordData == null)
            {
                recordData = new RecordData[1] {
                    data
                };
                return;
            }

            RecordData[] tempArray = new RecordData[recordData.Length];
            for (int ix = 0; ix < recordData.Length; ++ix)
            {
                tempArray[ix] = recordData[ix];
            }

            recordData = new RecordData[recordData.Length + 1];
            for (int ix = 0; ix < tempArray.Length; ++ix)
            {
                recordData[ix] = tempArray[ix];
            }

            recordData[recordData.Length - 1] = data;
        }
 bool HasRecordEvent(RecordData record)
 {
     return(record.recordEvent != null && record.recordEvent.eventType != -1);
 }