Use your "Powerup" integer outside of the Start method, just inside the class. You cannot just call a integer from one method to the other as it will show an error. Most of the errors will disapear.
Also, do not use "Powerup -- 1" , as it will subtract minus two times which is a plus. Just subtract once.
Answers
Use your "Powerup" integer outside of the Start method, just inside the class. You cannot just call a integer from one method to the other as it will show an error. Most of the errors will disapear.
Also, do not use "Powerup -- 1" , as it will subtract minus two times which is a plus. Just subtract once.
Hope this will help. :)
If you like, please help me on my problem too. Here is the link: https://forum.brackeys.com/discussion/2611/why-my-score-scirpt-works-on-all-of-my-prefabs#latest