예제 #1
0
    void Update()
    {
        if (count < numTrials)
        {
            if (nextTrial)
            {
                JRD curJRD = LoadJRDquestions.JRDlist[index];

                question.text = curJRD.question;

                if (Input.GetKeyDown(KeyCode.Return))
                {
                    StartCoroutine(SetupNextTrial());
                    question.text = "";
                }
//			else if (!nextTrial)
//			{
////				question.text = "";
//			}
            }
        }
        else
        {
            Experiment1.jrd_count = index;
            Experiment1.LoadNextModule();
        }
    }
예제 #2
0
 void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
         print("destroying game object");
     }
     else
     {
         instance = this;
         GameObject.DontDestroyOnLoad(gameObject);
         BuildBlockList();
         PlayerPrefs.SetString("playerID", "test");
     }
 }
예제 #3
0
 public void NextModule()
 {
     Experiment1.LoadNextModule();
 }
예제 #4
0
 public void StartTask()
 {
     Experiment1.StartTask();
 }