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