private void Awake() { if (instance != null) { return; } instance = this; }
public void Start() { inventorySlots = new List <InventorySlot>(); holdableSlots = new List <InventorySlot>(); numOfHoldableSlots++; addItem(hands); invSaveLoad = InventorySaveLoad.instance; if (invSaveLoad && invSaveLoad.getHasSaved()) { invSaveLoad.loadInventory(); } if (clearInventory) { ClearInventory(); } }