Example #1
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     if (InventoryUIManager.GetCurrentItem() == null)
     {
         m_slotBackground.color = new Color(0.5f, 0.5f, 0.5f);
     }
     else
     {
         ItemUIElement iui = InventoryUIManager.GetCurrentItem();
         if (CanFitItem(iui.ItemInfo))
         {
             m_slotBackground.color = new Color(0.5f, 1.0f, 0.5f);
         }
         else
         {
             m_slotBackground.color = new Color(1.0f, 0.5f, 0.5f);
         }
     }
     InventoryUIManager.SetHighlightedCell(this);
 }