// called by the AppController
        public void Initialize(ITourEventsListener listener, Camera cam, SoundFX soundFx, NotificationUI notificationUi,
                               TourLog tourLog, AnimatedCursor animatedCursor)
        {
            _camera         = cam;
            _animatedCursor = animatedCursor;
            _soundFX        = soundFx;
            _listener       = listener;
            _interaction.Initialize(this, _camera);
            _notificationUI = notificationUi;
            _interactionUI.Initialize(PlayHoveredSegment);
            _tourLog = tourLog;
            foreach (var c in _content)
            {
                c.Init(this);
            }

            SetState(Model.TourState.Inactive);
        }
Beispiel #2
0
 public void Initialize(ICommandListener listener, SoundFX soundFx, NotificationUI notificationUi)
 {
     _notificationUI = notificationUi;
     _listener       = listener;
     _soundFX        = soundFx;
 }