Exemplo n.º 1
0
    // Use this for initialization
    void Start()

    {
        curRepairs = 4;
        source     = GetComponent <AudioSource>();
        handbook.GetComponent <Canvas>();
        logger = GetComponent <TrialLogger>();
    }
Exemplo n.º 2
0
 private new void Start()
 {
     base.Start();
     rend           = gameObject.GetComponent <Renderer>();
     trialConductor = GameObject.Find("TrialManager").GetComponent <TrialConductor>();
     logger         = GameObject.Find("TrialManager").GetComponent <TrialLogger>();
     oldMaterial    = rend.material;
 }
Exemplo n.º 3
0
 void Start()
 {
     loader      = FindObjectOfType <TrialLoader>();
     conductor   = FindObjectOfType <TrialConductor>();
     toggler     = FindObjectOfType <ToggleElement>();
     logger      = FindObjectOfType <TrialLogger>();
     targetCandM = FindObjectOfType <TargetChooserAndMarker>();
     suggester   = FindObjectOfType <TargetSuggester>();
     menuManager = FindObjectOfType <MenuManager>();
 }
Exemplo n.º 4
0
 void Awake()
 {
     scriptAudio_MainScript = GameObject.Find("Main Camera").GetComponent <Audio_MainScript>();
     g_Player    = GameObject.FindGameObjectWithTag("Player");
     playerTrans = g_Player.GetComponent <Transform>();
     platformer2dcharacter_Script = g_Player.GetComponent <PlatformerCharacter2D>();
     GOController = GameObject.Find("GameController").GetComponent <GameController>();
     systemDialogueMental_Script  = GameObject.FindGameObjectWithTag("Player").GetComponent <SystemDialogueMental>();
     camera2Dfollow_Script        = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera2DFollow>();
     scriptDIAProgress_Controller = GameObject.Find("Player").GetComponent <DIAProgress_Controller>();
     trialLogger = GameObject.Find("Save").GetComponent <TrialLogger>();
     script_Platformer2DUserControl = GameObject.Find("Player").GetComponent <Platformer2DUserControl>();
 }
Exemplo n.º 5
0
    // Use this for initialization
    void Start()
    {
        // define the names of the custom datapoints we want to log
        // trial number, participant ID, trial start/end time are logged automatically
        List <string> columnList = new List <string> {
            "Choice", "Status"
        };

        participantID = participantNumber.ToString();

        // initialise trial logger
        trialLogger = GetComponent <TrialLogger>();
        trialLogger.Initialize(participantID, columnList);

        // here we start the first trial immediately, you can start it at any time
        trialLogger.StartTrial();
    }
    // Use this for initialization
    void Start()
    {
        // define the names of the custom datapoints we want to log
        // trial number, participant ID, trial start/end time are logged automatically
        List <string> columnList = new List <string> {
            "sphere_x", "sphere_y"
        };

        // initialise trial logger
        trialLogger = GetComponent <TrialLogger>();
        trialLogger.Initialize(participantID, columnList);

        // here we start the first trial immediately, you can start it at any time
        trialLogger.StartTrial();

        // now we update the trial number on screen
        trialNumDisplay.UpdateTrialNumber(trialLogger.currentTrialNumber);
    }
Exemplo n.º 7
0
 // Use this for initialization
 void Start()
 {
     logger     = FindObjectOfType <TrialLogger>();
     itemsSplit = items.Split('\n');
     suggestTarget();
 }
Exemplo n.º 8
0
 // Use this for initialization
 void Start()
 {
     targetCandM = GameObject.Find("IsoWheel").GetComponent <TargetChooserAndMarker>();
     logger      = gameObject.GetComponent <TrialLogger>();
     loader      = GameObject.FindObjectOfType <TrialLoader>();
 }
Exemplo n.º 9
0
 void Start()
 {
     logger = GameObject.FindObjectOfType <TrialLogger>();
 }
Exemplo n.º 10
0
 // Use this for initialization
 void Start()
 {
     experimentController = GameObject.Find("GameManager").GetComponent <TrialLogger>();
     experimentLogger     = GameObject.Find("GameManager").GetComponent <LoggerController>();
 }
Exemplo n.º 11
0
 // Use this for initialization
 new void Start()
 {
     base.Start();
     isToplevel = name.Contains("Anchor");
     logger     = GameObject.Find("TrialManager").GetComponent <TrialLogger>();
 }
Exemplo n.º 12
0
 void Start()
 {
     logger = GameObject.Find("TrialManager").GetComponent <TrialLogger>();
 }