|
|
@ -72,10 +72,7 @@ public class Recipe : MonoBehaviour { |
|
|
|
Inventory.sprite = newVeggie.Image; |
|
|
|
} |
|
|
|
|
|
|
|
public void dropItem() |
|
|
|
{ |
|
|
|
Inventory.gameObject.SetActive(false); |
|
|
|
} |
|
|
|
|
|
|
|
public void friendlyPickup(string VeggieName, int change) |
|
|
|
{ |
|
|
|
StartCoroutine(ItemLookup(VeggieName, change)); |
|
|
@ -96,6 +93,7 @@ public class Recipe : MonoBehaviour { |
|
|
|
|
|
|
|
IEnumerator ItemLookup(string VeggieName, int change) |
|
|
|
{ |
|
|
|
Debug.Log("Veggie" + VeggieName + " " + change); |
|
|
|
for (int i = 0; i < Veggies.Length; i++) |
|
|
|
{ |
|
|
|
if(Veggies[i].Name == VeggieName) |
|
|
|