Beispiel #1
0
 void OnEnable()
 {
     gridList = GetComponent <GridList>();
     gridList.Init();
     if (slots.Count == 0)
     {
         for (int i = 0; i < slotTypes.Length; i++)
         {
             slots[slotTypes[i]]        = gridList.GetElement <ItemSlot>(i);
             slots[slotTypes[i]].Index  = (int)slotTypes[i];
             slots[slotTypes[i]].Filter = filterTypes[i];
         }
     }
     inventory.EquipmentUpdateCallback += Refresh;
 }