Esempio n. 1
0
 void Init()
 {
     Inventory      = new Class.inventory(40);                      //on initialise l'inventaire
     _chest         = GameObject.Find("Chest");                     //On repère la position du coffre
     _ressourceList = GameObject.FindGameObjectsWithTag("Mineral"); //On insère toutes les ressources dans la liste
     miningSpeed    = 1f;
 }
Esempio n. 2
0
 public storage(Dictionary <string, string> itemsDictionary, Dictionary <int, int> itemCompo)
 {
     name        = itemsDictionary["name"];
     itemID      = int.Parse(itemsDictionary["itemID"]);
     itemType    = (ItemTypes)System.Enum.Parse(typeof(baseItem.ItemTypes), itemsDictionary["itemType"]);
     inventory   = new Class.inventory(int.Parse(itemsDictionary["inventorySpace"]));
     storageType = (StorageTypes)System.Enum.Parse(typeof(storage.StorageTypes), itemsDictionary["type"]);
     compo       = itemCompo;
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     Inventory = new Class.inventory(400);
 }