For loop not looping, Conditional break and return question?
The above is the loop is question!
It stays on 0, never adding to "i" to advance in the loop. I think I need a series of breaks and returns to have the loop move up, when it's done figuring out whether the recipe in the list has existing corresponding ItemInfo .
I feel like I'm so close but so far! Any help is appreciated, I will be happy to share the full item and inventory system scripts if it helps anyone solve the problem!
"Recipe" and "Item" are constructs I have in a custom class. Recipe uses Vector2 to store (Ingredient ID, Amount of ingredient).
If you want to advance under certain conditions you have to use continue (next interation) ins$$anonymous$$d of break (exiting the loop).
In your case you're breaking out probably every first run.