Exemplo n.º 1
0
 public void Start()
 {
     trigger        = GameObject.FindGameObjectWithTag("Trigger");
     manager        = GameObject.FindGameObjectWithTag("Manager");
     controlLevels  = manager.GetComponent <ControlLevel_Trials>();
     targetTouched  = false;
     penaltyTouched = false;
 }
Exemplo n.º 2
0
    void Start()
    {
        allActive    = false;
        controlLevel = manager.GetComponent <ControlLevel_Trials>();

        // create a folder
        string OutputDir = Path.Combine(FolderName, string.Concat(DateTime.Now.ToString("MM-dd-yyyy"), FileName));

        Directory.CreateDirectory(OutputDir);


        // create a file to record data
        String trialOutput = Path.Combine(OutputDir, DateTime.Now.ToString("yyyy-MM-dd-HH-mm") + "_Results.txt");

        trialStreams = new FileStream(trialOutput, FileMode.Create, FileAccess.Write);


        //Call the function below to write the column names
        WriteHeader();
    }
    // Start is called before the first frame update
    void Start()
    {
        // angular error between fixation and controller
        gazeHead = manager.GetComponent <ViveSR.anipal.Eye.GazeHeadPos>();
        controls = manager.GetComponent <ControlLevel_Trials>();

        // create a folder
        string OutputDir = Path.Combine(FolderName, string.Concat(DateTime.Now.ToString("MM-dd-yyyy"), FileName));

        Directory.CreateDirectory(OutputDir);

        // create a file to record data
        String trialOutput = Path.Combine(OutputDir, DateTime.Now.ToString("yyyy-MM-dd-HH-mm") + "_Results.txt");

        trialStreams = new FileStream(trialOutput, FileMode.Create, FileAccess.Write);

        //Call the function below to write the column names
        WriteHeader();
        controller = controls.gamecontroller;

        vector = new Vector3(0, 0, 0);
    }