Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.E) && (craftMenuMainLayer != null && !craftMenuMainLayer.GetMenuShowing()))
     {
         if (highlightedItem != null)
         {
             //PickupItem itemToAdd = Instantiate(highlightedItem);
             inventorySystem.AddToInventory(highlightedItem.gameObject);
             // Add item to inventory
             //Destroy(highlightedItem.gameObject);
         }
     }
 }