public void ClearSelection() { if (CurSelection != null) { CurSelection.OnDisSelect(); CurSelection = null; } }
public void OnDisSelect(SelectableButton target) { if (CurSelection == target && m_isSelectionNecessary) { return; } target.OnDisSelect(); }
public void OnSelect(SelectableButton target) { ClearSelection(); CurSelection = target; target.OnSelect(); }
public void SetSelection(SelectableButton Selectedbutton) { CurSelection = Selectedbutton; }