void Start() { // Script references m_ExpSetup = this.GetComponent <ExpSetup>(); m_ExpCueConj = this.GetComponent <ExpCueConj>(); photocell = GameObject.Find("Photocell"); }
void Start() { // Script references m_ExpSetup = this.GetComponent <ExpSetup>(); m_ExpCue = this.GetComponent <ExpCue>(); // Find flicker objects //rightFlicker = GameObject.Find("RightMotion_Flicker"); //leftFlicker = GameObject.Find("LeftMotion_Flicker"); photocell = GameObject.Find("Photocell"); }
void Start() { // Initialize script references m_ExpSetup = this.GetComponent <ExpSetup>(); // Find all the HUD elements blueArray = GameObject.FindGameObjectsWithTag("BlueHUD"); // Add all HUD elements to a single array for (int i = 0; i < 2; i++) { arrayHUD[i] = blueArray[i]; //arrayHUD[i] = greenArray[i]; } }
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; }
private void button1_Click(object sender, EventArgs e) { ExpSetup exp; exp = new ExpSetup(); exp.Start(ref doc); short pret; while (true) { exp.GetParam(EXP_CMD.EXP_RUNNING_EXPERIMENT, out pret); if (pret == 0) { break; } } }
private void Awake() { // Setup script references m_ExpSetup = this.GetComponent <ExpSetup>(); m_ExpCue = this.GetComponent <ExpCue>(); // Find flicker objects //rightFlicker = GameObject.Find("RightMotion_Flicker"); //leftFlicker = GameObject.Find("LeftMotion_Flicker"); photocell = GameObject.Find("Photocell"); // Make list of both flicker objects flickerObjects.Add(rightFlicker); flickerObjects.Add(leftFlicker); flickerObjects.Add(photocell); rightFlickerStartPosition = rightFlicker.transform.position; leftFlickerStartPosition = leftFlicker.transform.position; }
void Start() { expSetupRef = this.GetComponent <ExpSetup>(); // access ExpSetup.m script on the same gameobject as this script fixationLoc = GameObject.Find("FixationCross").transform.position; // access fixation cross gameobject }