public IEnumerator InitStrat(AEPsychClient AEPsychClient, string configPath, bool isPath = true) { client = AEPsychClient; yield return(StartCoroutine(client.StartServer(configPath: configPath, "0.01", isPath))); stratId = client.GetStrat(); }
public IEnumerator InitStrat(AEPsychClient AEPsychClient, string configPath) { client = AEPsychClient; currentTrial = 0; yield return(StartCoroutine(client.StartServer(configPath))); stratId = client.GetStrat(); }
// Start is called before the first frame update IEnumerator Start() { config = new TrialConfig(); string configPath = "Assets/StreamingAssets/configs/single_lse_1d.ini"; yield return(StartCoroutine(client.StartServer(configPath: configPath))); SetText("Welcome. Press Y to begin."); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Y))); yield return(StartCoroutine(RunExperiment())); }
// Start is called before the first frame update IEnumerator Start() { GameObject example = Instantiate(examplePrefab); example.SetActive(true); config = new TrialConfig(); string configPath = "Assets/StreamingAssets/configs/single_opt_3d.ini"; yield return(StartCoroutine(client.StartServer(configPath: configPath))); SetText("Welcome. Note the color above, which is indigo. Press Y to begin."); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Y))); //example.SetActive(false); yield return(StartCoroutine(RunExperiment())); }