Example #1
0
 public void ReactToItemHover(ItemPane itemPane)
 {
     if (selectSound != null)
     {
         SoundManager.UISound(selectSound);
     }
     scrollView.content.localPosition = new Vector2(
         scrollView.content.localPosition.x,
         scrollView.GetSnapToPositionToBringChildIntoView(itemPane.GetComponent <RectTransform>()).y
         );
     ShowItemInfo(itemPane.storedItem);
 }
Example #2
0
 public void ReactToItemHover(ItemPane itemPane)
 {
     audioSource.PlayOneShot(audioSource.clip);
     scrollView.content.localPosition = scrollView.GetSnapToPositionToBringChildIntoView(itemPane.GetComponent <RectTransform>());
     ShowItemInfo(itemPane.inventoryItem);
 }