r/UnityHelp • u/MasterCoconut22 • Oct 22 '22
Unity slider displaying different values
I have a game where you have a flashlight and a slider for fuel, when you run low on fuel you can pickup a canister to replenish 75f. The problem is that after you pickup the canister the slider displays the value before picking up when the flashlight is active. Any tips

here are all the instances of changing the slider value

3
Upvotes
1
u/LIFEHACKER008 Oct 23 '22
What is FeulBar.FeulBar. I mean a variable with the same name as that of the script. Have you checked debug. Log to see where you are able to reach in your code?