using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class SliderItem : MonoBehaviour, IPointerDownHandler { public event Action OnClick; public bool IsActive => _activeImage.gameObject.activeInHierarchy; public Sprite ActiveSprite => _activeImage.sprite; private Image _activeImage; private Image _inactiveImage; private Button _button; private void Awake() { _button = GetComponent