Esempio n. 1
0
    private void PickUp()
    {
        GameObject obj = cameraActions.GetFacingItem();

        if (obj != null)
        {
            Pickupable item = obj.GetComponent <Pickupable>();
            if (inventory.AutoPickSlot(item))
            {
                print("Item was picked Up");
                return;
            }
            else
            {
                print("Missing InventorySpace");
            }
        }
        else
        {
            print("No Item was found");
        }
    }