if you look at this line.
Code: Select all
iUsed.SetTag("BananaCounter", maxBananas); // Add 5 bananas to the tree initiallywell if you look at top of the script it says
Code: Select all
var maxResource = 5;Code: Select all
var maxResource = 5;Code: Select all
var maxBananas = 5; //maximum amount of resources on a given item