Exemplo n.º 1
0
 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.itemId.Length; i++)
     {
         AddItem(itemdatabase.Getconsumable(GameManager.gm.itemId[i]));
     }
     for (int i = 0; i < GameManager.gm.armorId.Length; i++)
     {
         AddArmor(itemdatabase.Getarmor(GameManager.gm.armorId[i]));
     }
     for (int i = 0; i < GameManager.gm.keyId.Length; i++)
     {
         AddKey(itemdatabase.GetKey(GameManager.gm.keyId[i]));
     }
 }