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; }
public InventoryItem(SlotShape slotShape) { itemSlots = SlotShape.FilterPoints(slotShape); }