private void SetupTraining() { CanvasManager.SetText("Trial number", TrialNumber.ToString()); var instructionText = Settings.Messages ["goto"] + currentStoreName; CanvasManager.SetText("Instructions", instructionText); }
private void SetupPointing() { _player.MoveToPosition(CENTER); _player.EnableMovement(false); storesManager.HideAll(); CanvasManager.SetText("Trial number", TrialNumber.ToString()); var instructionText = Settings.Messages ["point"] + currentStoreName; CanvasManager.SetText("Instructions", instructionText); InputManager.PointButtonPressed += TrialFinish; }
void Start() { // Setup script references m_ExpSetup = this.GetComponent <ExpSetup>(); m_ExpCue = this.GetComponent <ExpCue>(); m_ExpPeripheral = this.GetComponent <ExpPeripheral>(); m_ExpTrial = this.GetComponent <ExpTrial>(); m_TrialInfoData = this.GetComponent <TrialInfoData>(); m_FlickerManager = this.GetComponent <FlickerManager>(); // Setup peripheral display references occluderRef.AddRange(GameObject.FindGameObjectsWithTag("Occluder")); peripheralDisplayRef = GameObject.Find("Peripheral Display"); m_SpawnPeriperal = peripheralDisplayRef.GetComponent <SpawnPeripheral>(); // Setup fixation gameobject reference fixationObjectRef = GameObject.Find("FixationCross"); // Setup trial counter references trialCounterRef = GameObject.Find("TrialCounter"); m_TrialNumber = trialCounterRef.GetComponent <TrialNumber>(); trialCounterRef.SetActive(false); // hide trial counter // Setup input field references inputGameobjectRef = GameObject.Find("InputField"); inputGameobjectRef.SetActive(false); // hide text input field // Setup feedback references feedbackGameobjectRef = GameObject.Find("Feedback"); feedbackGameobjectRef.SetActive(false); // hide feedback object // Setup instruction references instructionsRef = GameObject.Find("Instructions"); // Setup coherence manager references coherenceManagerRef = GameObject.Find("CoherenceManager"); if (coherenceManagerRef != null) { m_AdjustCoherence = coherenceManagerRef.GetComponent <AdjustCoherence>(); } // Adjust coherence level for current subject using calibration data //if (adjustCoherence) // totalNum = m_AdjustCoherence.coherenceNum; }
void Start() { // Initialize script references m_ExpSetup = this.GetComponent <ExpSetup_Exp>(); m_ExpCue = this.GetComponent <ExpCue_Exp>(); m_ExpTrial = this.GetComponent <ExpTrial_Control>(); m_LocationData = this.GetComponent <LocationData_Control>(); m_ResponseData = this.GetComponent <ResponseData_Exp>(); // Find peripheral objects redPeripherals = GameObject.FindGameObjectsWithTag("RedHUD"); bluePeripherals = GameObject.FindGameObjectsWithTag("BlueHUD"); // Find photocell object pcObjectRef = GameObject.Find("Photocell"); // Find instructions object instructionsRef = GameObject.Find("Instructions"); // Setup input field references inputGameobjectRef = GameObject.Find("InputField"); inputGameobjectRef.SetActive(false); // Setup trial counter references trialCounterRef = GameObject.Find("TrialCounter"); m_TrialNumber = trialCounterRef.GetComponent <TrialNumber>(); trialCounterRef.SetActive(false); // Setup subTrialCalls bool list for (int i = 0; i < subtrialNum; i++) { subTrialCalls.Add(false); } nextSceneNum = SceneManager.GetActiveScene().buildIndex + 1; }