private int maxSlots = 9;
private int checkingSlot;
public bool currentSlotEmpty;
public bool objectAdded = false;
public bool slotOneEmpty = true;
public bool slotTwoEmpty = true;
public bool slotThreeEmpty = true;
public bool slotFourEmpty = true;
public bool slotFiveEmpty = true;
public bool slotSixEmpty = true;
public bool slotSevenEmpty = true;
public bool slotEightEmpty = true;
public void slotObjectAdding ()
for (int slot = 0; slot < maxSlots; slot++)
if (currentSlot == checkingSlot)
if (currentSlotEmpty == true)
public void updateSlot ()
if (currentSlot == 1 && slotOneEmpty)
else if (currentSlot == 2 && slotTwoEmpty)
else if (currentSlot == 3 && slotThreeEmpty)
else if (currentSlot == 4 && slotFourEmpty)
else if (currentSlot == 5 && slotFiveEmpty)
else if (currentSlot == 6 && slotSixEmpty)
else if (currentSlot == 7 && slotSevenEmpty)
else if (currentSlot == 8 && slotEightEmpty)
currentSlotEmpty = false;
else if (currentSlot == 2)
else if (currentSlot == 3)
else if (currentSlot == 4)
else if (currentSlot == 5)
else if (currentSlot == 6)
else if (currentSlot == 7)
else if (currentSlot == 8)