Esempio n. 1
0
 private void PickupWeaponTool()
 {
     if (lastLooked != null && Input.GetKeyDown(KeyCode.F) && !lastLooked.GetComponent <WeaponTool>().Used)
     {
         lastLooked.gameObject.SetActive(false);
         inventory.AddToInventory(lastLooked.gameObject);
         lastLooked.gameObject.transform.parent = gameObject.transform;
     }
 }