Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     Inventory = new Class.inventory(400);
 }