예제 #1
0
 public override void OnPointerDown(PointerEventData eventData)
 {
     if (isInteractable)
     {
         scrollGroup.SelectUIItem(ItemIndex);
     }
 }
예제 #2
0
    public virtual void TrySelectFirstAvailable()
    {
        PLEUIItem firstAvailable = scrollGroup.TryGetFirstAvailableUIItem();

        if (firstAvailable)
        {
            selectedPreviewImage.sprite = firstAvailable.imagePreview.sprite;
            scrollGroup.SelectUIItem(firstAvailable.ItemIndex, false);
        }
    }