Exemplo n.º 1
0
    // for debugging purposes
    //int RF1 = 0;
    //int RF2 = 0;
    //int GF1 = 0;
    //int GF2 = 0;

    void Start()
    {
        m_ExpSetup   = this.GetComponent <TrialSetup>();
        m_ExpManager = this.GetComponent <TrialManager>();

        // Find all the HUD elements
        redArray   = GameObject.FindGameObjectsWithTag("RedHUD");
        greenArray = GameObject.FindGameObjectsWithTag("GreenHUD");

        for (int i = 0; i < 2; i++)
        {
            arrayHUD[i]     = redArray[i];
            arrayHUD[i + 2] = greenArray[i];
        }
    }
    // 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()
 {
     expManagerScript = expManagerObject.GetComponent <TrialManager>();
     expSetupScript   = expManagerObject.GetComponent <TrialSetup>();
     uitext           = this.GetComponent <Text>();
 }
 void Start()
 {
     trialSetupRef = this.GetComponent <TrialSetup>();
     fixationLoc   = GameObject.Find("FixationCross").transform;
 }