public void SelectSort() { _imageToSetSelected.sprite = _selectedSortIcon; LastSortItem.SetUnselectedSprite(); SetSelectedSprite(); LastSortItem = this; }
// Start is called before the first frame update void Start() { _unselectedSprite = GetComponent <Image>().sprite; if (_isDefaultSort) { LastSortItem = this; SetSelectedSprite(); } }