void ContinueCalled()
    {
        //if (c_action != null)
        //{
        //    if(c_action.R_hand.GetComponent<HandPoser>().poseRoot!=null)
        //    c_action.R_hand.GetComponent<HandPoser>().poseRoot = null;
        //}
        if (!no_continue)
        {
            var outfile = new StreamWriter(dataPath, true);
            outfile.WriteLine("continue called once at UTC time = " + System.DateTime.UtcNow.ToString());
            outfile.Close();

            demo_called     = true;
            continue_called = true;
            done_called     = false;
            userstart       = true;
            correct_found   = false;
            //start_called = false;

            if (CheckCorrect() == true) //until all correct, you can proceed to next task
            {
                if (task.taskNumber_correct < 4)
                {
                    PlayAudio(clips[3]); //agent say the "your task is here, take your time"
                    if (task != null)
                    {
                        //int k = 0;

                        for (int i = 0; i < task.activeNum; i++)
                        {
                            //k = task.matNum[i] - 1;
                            dict[i].oriObject.SetActive(false);
                            dict[i].targHolder.SetActive(false);
                        }
                    }

                    task.CreateNewTask(task.taskNumber_correct * 2 + 3);  //number=taskNumber_correct*2+3
                }

                else
                {
                    PlayAudio(clips[6]);
                }
            }
        }
        else
        {
            PlayAudio(clips[6]);
        }
    }
Exemple #2
0
    void ContinueCalled()
    {
        continue_called = true;
        if (task.taskNumber_correct < 4)
        {
            PlayAudio(clips[3]); //agent say the "your task is here, take your time"
            if (task != null)
            {
                for (
                    int i = 0; i < task.activeNum; i++)
                {
                    dict[i].oriObject.SetActive(false);
                    dict[i].targHolder.SetActive(false);
                }
            }

            task.CreateNewTask(task.taskNumber_correct * 2 + 3);  //number=taskNumber_correct*2+3
        }

        else
        {
            PlayAudio(clips[6]);
        }
    }