Example #1
0
 public void AddObject(ObjetsRessource obj)
 {
     if (p_inventory.Count == _UI_Inventory.Instance.GetItems().Length)
     {
         _UI_Inventory.Instance.AddSlot();
     }
     p_inventory.Push(obj);
     CurrentResource = p_inventory.Peek();
 }
Example #2
0
 public void ChangeCurrentResource(int index)
 {
     CurrentResource = Inventory.ToArray()[index];
     _UI_Inventory.Instance.ChangeCurrentItem(index);
 }
 public void RemoveObject(ObjetsRessource obj)
 {
     p_Dict_ObjetsRamasses.Remove(obj.Nom);
 }
 public void AddObject(ObjetsRessource obj)
 {
     ObjetRessourceCourant = obj;
     p_Dict_ObjetsRamasses.Add(obj.Nom, obj);
 }