The score is not updating when objects are destroyed by a powerup
thanks in advance!
5 Replies
Same dance as usual? 🙂
Are you sure the function gets called at all when you think it ought to be?
Does it enter the first if?
If so, how are you determining that its not updating.
Anything specific is pretty much impossible for anyone here to know if we cant see your code.
btw, a shorthand for "set the value of x to itself plus some number" is
x += number
or since it's just adding 1 you can simply write nukePoints++
aka the increment operator.use Debug.Log method to make sure the method is being called
is nukePoints a static variable or normal?
I don't know how I keep forgetting to test that 💀 I need to make a sticky note or something
I'm in class rn, so I'll get that goin as soon as I'm home
I suspected that might be the case 😉
alright sorry for the delay, the method isn't activating at all
I figured it out
thanks guys