public void Select(SelectableComponent target) { if (Selection != null) { Selection.HighlightRenderer.sprite = null; } Selection = target; if (Selection != null) { Selection.HighlightRenderer.sprite = Selection.SelectedSprite; } }
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; } }