void Start()
 {
     x           = gameObject.transform.position.x;
     y           = gameObject.transform.position.y;
     z           = gameObject.transform.position.z;
     itemInHands = CraftingConstants.Resource.None;
 }
 public void putItem(CraftingConstants.Resource item)
 {
     if (actualItemsInside < size)
     {
         inventory[actualItemsInside] = item;
         actualItemsInside++;
         for (int i = 0; i < size; i++)
         {
             print("INV: " + inventory[i].ToString());
         }
     }
 }
 public void TryAddNewItemToInventory(CraftingConstants.Resource resource)
 {
     if (recipe.Resources[inventory.Count] == resource)
     {
         if (recipe.Resources.Length - 1 == inventory.Count)
         {
             inventory.Clear();
             FinishCrafting();
         }
         else
         {
             ResourceImages[inventory.Count].sprite = Resources.Load <Sprite>("Textures\\UI\\ItemsUI\\check");
             inventory.Add(resource);
         }
     }
     else
     {
         timerObject.GetComponent <Timer>().effectiveRemainingTime -= 5;
     }
 }