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(); } }
void Awake() { if (instance != null) { Destroy(gameObject); print("destroying game object"); } else { instance = this; GameObject.DontDestroyOnLoad(gameObject); BuildBlockList(); PlayerPrefs.SetString("playerID", "test"); } }
public void NextModule() { Experiment1.LoadNextModule(); }
public void StartTask() { Experiment1.StartTask(); }