// 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(); }
// overrides void Start() { _hrClient = GetComponent <HRClient>(); _log = GetComponent <Log>(); _restingImages = GetComponent <RestingImages>(); _focusDetector = FindObjectOfType <FocusDetector>(); _focusDetector.Focused += onAttentionGrabberFocused; _image = GetComponentInChildren <OrientationImage>(); }
// 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; }
void Start() { _hrClient = GetComponent <HRClient>(); _curtainColor = curtain.color; }