Esempio n. 1
0
    // overrides

    void Start()
    {
        _orientation = GetComponent <OrientationTask>();
        _orientation.BlockFinished += onOrientationBlockFinished;
        _orientation.Cancelled     += onOrientationTrialCancelled;

        _playingLady = GetComponent <PlayingLadyTask>();
        _playingLady.BlockFinished += onPlayingLadyBlockFinished;
        _playingLady.Cancelled     += onPlayingLadyTrialCancelled;

        _hrClient = GetComponent <HRClient>();
        _log      = GetComponent <Log>();

        _socialVideos = GetComponent <SocialVideos>();

        _gazePoint = FindObjectOfType <GazePoint>();

        _gazeClient         = FindObjectOfType <GazeClient>();
        _gazeClient.Start  += onGazeClientStart;
        _gazeClient.Sample += onGazeClientSample;

        baselinePlayer.loopPointReached    += onBaselineStopped;
        socialVideoPlayer.loopPointReached += onSocialVideoStopped;

        FillParticipantIDs();
    }
Esempio n. 2
0
    // overrides

    void Start()
    {
        _hrClient      = GetComponent <HRClient>();
        _log           = GetComponent <Log>();
        _restingImages = GetComponent <RestingImages>();

        _focusDetector          = FindObjectOfType <FocusDetector>();
        _focusDetector.Focused += onAttentionGrabberFocused;

        _image = GetComponentInChildren <OrientationImage>();
    }
Esempio n. 3
0
    // overrides

    void Start()
    {
        _hrClient      = GetComponent <HRClient>();
        _log           = GetComponent <Log>();
        _restingImages = GetComponent <RestingImages>();

        _focusDetector = FindObjectOfType <FocusDetector>();
        // _focusDetector.SetDebugOutput(debug);
        _focusDetector.Focused += onHeadAreaFocused;

        _player          = FindObjectOfType <PlayingLadyPlayer>();
        _player.Started += onClipStarted;
        _player.Stopped += onClipStopped;
    }
Esempio n. 4
0
 void Start()
 {
     _hrClient     = GetComponent <HRClient>();
     _curtainColor = curtain.color;
 }