Example #1
0
 public void AddItem(Item item)
 {
     if (item != null)
     {
         Item          = item;
         State         = InventorySlotState.Closed;
         Item.Size     = box.Size;
         Item.Position = box.Position;
     }
     else
     {
         Console.WriteLine("ADDED ITEM WAS NULL");
     }
 }
Example #2
0
 public void ClearSlot()
 {
     Item  = null;
     State = InventorySlotState.Open;
 }