Example #1
0
        private void UpdateHover(ISelectable selectable)
        {
            if (_hoveringVisualizer != null)
            {
                _hoveringVisualizer.EndHover();
                _hoveringVisualizer.End();
                _hoveringVisualizer = null;
            }

            _currentHover = selectable;

            if (selectable != null)
            {
                _hoveringVisualizer            = _currentHover.GetSelectionVisualizer();
                _hoveringVisualizer.Visualized = selectable;
                _hoveringVisualizer.BeginHover();
                _hoveringVisualizer.Begin();
            }
        }
Example #2
0
 private void End(ISelectionHandler handler, ISelectionVisualizer visualizer)
 {
     handler.End();
     visualizer.End();
 }