void Awake() { MasterControl.Instance = this; if (!modeTest) { InputPath = Application.dataPath + "/Input/" + "Subject" + SubjectSettings.instance.SubjectID + ".csv"; InputFile = new System.IO.StreamReader(InputPath); } else { InputPath = Application.dataPath + "/Input/" + "Subject" + SubjectT + ".csv"; InputFile = new System.IO.StreamReader(InputPath); } Time_Trials.TrialCounter = 0; TrialSettings = new List <TempStruct>(); MFW = gameObject.GetComponent <MovementRecorder>(); PlayerHitbox.transform.localScale = new Vector3(1, 1, 2 * float.Parse(SubjectSettings.instance.ShWidth)); //temporary function MakeArray(); }
private void Awake() { input = 0; phase = 0; recorder = new MovementRecorder(); }