Пример #1
0
        public void Select(SelectableComponent target)
        {
            if (Selection != null)
            {
                Selection.HighlightRenderer.sprite = null;
            }

            Selection = target;

            if (Selection != null)
            {
                Selection.HighlightRenderer.sprite = Selection.SelectedSprite;
            }
        }
Пример #2
0
        public void Preselect(SelectableComponent target)
        {
            if (Preselection != null && Selection != Preselection)
            {
                Preselection.HighlightRenderer.sprite = null;
            }

            Preselection = target;
            MainPanel.Current.RefreshState();

            if (Preselection != null && Selection != Preselection)
            {
                Preselection.HighlightRenderer.sprite = Preselection.PreselectedSprite;
            }
        }