public void ClickedButton (AbilityButton _button) { if (_button == currentSelection) { if (_button.isSelected) { this.currentSelection = null; _button.isSelected = false; _button.SetTint (normalTint); } } else { if (currentSelection != null) { currentSelection.isSelected = false; currentSelection.SetTint (normalTint); } currentSelection = _button; _button.isSelected = true; _button.SetTint (selectedTint); } }