public void LoadInventory() { for (int i = 0; i < inventory.weaponId.Length; i++) { AddWeapon(itemDataBase.GetWeapon(inventory.weaponId[i])); } for (int i = 0; i < inventory.itemId.Length; i++) { AddItem(itemDataBase.GetConsumableItem(inventory.itemId[i])); } for (int i = 0; i < inventory.armorId.Length; i++) { AddArmor(itemDataBase.GetArmor(inventory.armorId[i])); } }
void LoadInventory() { for (int i = 0; i < GameManager.gm.weaponId.Length; i++) { AddWeapon(itemDataBase.GetWeapon(GameManager.gm.weaponId[i])); } for (int i = 0; i < GameManager.gm.keyId.Length; i++) { AddKey(itemDataBase.GetKey(GameManager.gm.keyId[i])); } for (int i = 0; i < GameManager.gm.itemId.Length; i++) { AddItem(itemDataBase.GetConsumableItem(GameManager.gm.itemId[i])); } for (int i = 0; i < GameManager.gm.armorId.Length; i++) { AddArmor(itemDataBase.GetArmor(GameManager.gm.armorId[i])); } }