void CuePhase() { // Display the trial's cue if (!e_cueCall) { Time.timeScale = 6; // x6 the speed for peripheral to get into place m_ExpCueConj.ShowCue(); // spawn cue for trial fixationObjectRef.SetActive(false); // hide fixation cross // activate occluders as peripheral sets up for (int i = 0; i < occluderRef.Count; i++) { occluderRef[i].SetActive(true); } // set peripheral apperance as right or left peripheralDirection = m_ExpPeripheralConj.SetupPeripheral(); // start flickering elements m_FlickerManager.StartAllFlicker(); // get current trial's target rightDirection = m_ExpCueConj.activeTarget.GetComponent <TargetMotion>().moveRight; // set total num of distractors for trial SetTotalNum(); e_cueCall = true; } // Keep track of time for when minimum cue phase reached generalTimer += Time.deltaTime; if (generalTimer >= cueTime) { Time.timeScale = 1; // reset the speed to one cueDone = true; generalTimer = 0f; Debug.Log("cuephase done"); } }
void Start() { m_FlickerManager.StartAllFlicker(); }