示例#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;
            }
        }