Ejemplo n.º 1
0
        void StatueInteraction.IInteractionListener.OnBeginHover(StatueInteraction.HoverEventData eventData)
        {
            _model.HitPosition    = eventData.HitPosition;
            _model.HitNormal      = eventData.HitNormal;
            _model.HoveredSegment = eventData.HoveredType;

            if (_model.CurrentCursorState == Model.CursorState.Playing)
            {
                return;
            }

            if (_model.CurrentTourState == Model.TourState.Prologue) //quick fix, to quick select first the tour station - whole statue
            {
                PlayHoveredSegment();
            }
            else
            {
                BeginDwellTimerForHoveredSegment();
            }

            RenderModel(_interactionUI, _model, _interaction, _camera, _animatedCursor);
        }
Ejemplo n.º 2
0
 void StatueInteraction.IInteractionListener.OnUpdateHover(StatueInteraction.HoverEventData eventData)
 {
     _model.HitPosition = eventData.HitPosition;
     _model.HitNormal   = eventData.HitNormal;
     RenderModel(_interactionUI, _model, _interaction, _camera, _animatedCursor);
 }