Example #1
0
 private void Awake()
 {
     InventoryDatabase.AddNewInventory(gameObject);
     inventoryId = InventoryDatabase.inventory.Count - 1;
     inventoryUI.SetInventoryId(inventoryId);
     inventoryUI.inventoryId = inventoryId;
     InventoryDatabase.AddNewInventoryUI(inventoryUI.gameObject);
 }