Exemplo n.º 1
0
 public void Init(SlotShape slotShape)
 {
     itemSlots = SlotShape.FilterPoints(slotShape);
     GetComponent <RectTransform>().sizeDelta =
         new Vector2(slotShape.Shape.GetLength(1) * 50, slotShape.Shape.GetLength(0) * 50);
     GetComponent <Image>().sprite = sprite;
 }
Exemplo n.º 2
0
 public InventoryItem(SlotShape slotShape)
 {
     itemSlots = SlotShape.FilterPoints(slotShape);
 }