Exemple #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();
    }
Exemple #2
0
    // overrides

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

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

        _image = GetComponentInChildren <OrientationImage>();
    }
Exemple #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;
    }
Exemple #4
0
 void Start()
 {
     _hrClient     = GetComponent <HRClient>();
     _curtainColor = curtain.color;
 }