private void DisableSelection() { _counter--; if (itemSelectionImage != null && _counter <= 0) { _selectedItem = null; OnPointerExitEvent?.Invoke(); itemSelectionImage.SetActive(false); } }
private void EnableSelection() { _counter++; if (_counter <= 0) { _counter = 1; } if (itemSelectionImage == null || _counter > 1) { return; } _selectedItem = this; itemSelectionImage.SetActive(true); OnPointerEnterEvent?.Invoke(); }