private void Start() { m_spriteRenderer = GetComponent <SpriteRenderer>(); m_flickerManager = GameMaster.GetFlickerManager(); m_randomOffset = Random.Range(0, m_flickerSprites.Count); }
private Managers() { flicker = new FlickerManager(); imgur = new ImgurManager(); user = new UserManager(); cache = new CacheManager(); nav = new NavigationManager(); service = SERVICE.IMGUR; }
// Use this for initialization void Start() { CameraRef = GameObject.Find("HUDCamera"); CarMoveRef = CameraRef.GetComponent <iTweenMove>(); flickManagerRef = this.GetComponent <FlickerManager>(); flickControlRef = GameObject.Find("InnerGreen").GetComponent <FlickerControl>(); pcObjectRef = GameObject.Find("PhotocellCue"); pcFlickerRef = pcObjectRef.GetComponent <FlickerPhotocell>(); trialSetupRef = this.GetComponent <TrialSetup>(); trialCueRef = this.GetComponent <TrialCue>(); trialSpawnRef = this.GetComponent <TrialSpawn>(); locationDataRef = this.GetComponent <LocationData>(); responseDataRef = this.GetComponent <ResponseData>(); }
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 Awake() { peripheralDisplayRef = GameObject.Find("Peripheral Display"); m_SpawnPeriperal = peripheralDisplayRef.GetComponent <SpawnPeripheral>(); m_FlickerManager = this.GetComponent <FlickerManager>(); }
void Awake() { m_FlickerManager = this.GetComponent <FlickerManager>(); }
public static void RegisterFlickerManager(FlickerManager _manager) { GetGameMaster().m_flickerManager = _manager; }