#it should change though everytime it
1 messages · Page 1 of 1 (latest)
wdym
The issue is that when I click the play button to see if the code works, the minions text doesn't change. It's a basic text box, if that helps you figure out what I'm doing wrong
Here's also the hierarchy for the scene I'm using, assuming that would help us figure this out
did u place the Text component into the script in the inspector? show where u added the script
I put it into the scripts folder I put into my assets tab. Is this not the right place for it?
yes but you need to place the script onto a gameobject in the scene
Got it, I think I understand what went wrong
Ok, the number is going up now. The "minions" part of the text disappears when it goes up, but still, progress! Thanks for your help.
make it this into the script minionsText.text = "Minions amount: " + minions.ToString();
Works beautifully. Thanks!
np! hope u understood the code a little instead of just copy and pasting