Exemplo n.º 1
0
 public void OnPointerExit(PointerEventData eventData)
 {
     sectorScript = null;
     invenGridManager.highlightedSlot = null;
     if (ItemScript.selectedItem != null)
     {
         invenGridManager.RefrechColor(false);
     }
     posOffset = IntVector2.Zero;
     if (parentSlotScript.storedItem != null && ItemScript.selectedItem == null)
     {
         invenGridManager.ColorChangeLoop(Color.white, parentSlotScript.storedItemSize, parentSlotScript.storedItemStartPos);
     }
 }
Exemplo n.º 2
0
 public void OnPointerExit(PointerEventData eventData)
 {
     sectorScript = null;
     invenGridManager.highlightedSlot = null;
     overlayScript.UpdateOverlay(null);
     if (ItemScript.selectedItem != null)
     {
         invenGridManager.RefrechColor(false);
     }
     posOffset = IntVector2.Zero;
     if (parentSlotScript.storedItemObject != null && ItemScript.selectedItem == null)
     {
         invenGridManager.ColorChangeLoop(SlotColorHighlights.Blue2, parentSlotScript.storedItemSize, parentSlotScript.storedItemStartPos);
     }
 }
Exemplo n.º 3
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     sectorScript = this;
     invenGridManager.highlightedSlot = slotParent;
     PosOffset();
     if (ItemScript.selectedItem != null)
     {
         invenGridManager.RefrechColor(true);
     }
     if (parentSlotScript.storedItemObject != null && ItemScript.selectedItem == null)
     {
         invenGridManager.ColorChangeLoop(SlotColorHighlights.Blue, parentSlotScript.storedItemSize, parentSlotScript.storedItemStartPos);
     }
     if (parentSlotScript.storedItemObject != null)
     {
         overlayScript.UpdateOverlay(parentSlotScript.storedItemClass);
     }
 }