Unity 3D i can't change the value of integer with any command in the script

yeah I know I upload very recently but that’s just because I am really new to unity not that I cant code or something but anyways my problem is that when I have a function that changes the values of an integer
when I start the game the reset and are how I lastly have set them for some tests.
What should I do to fix that? I’m working on a throttle function and that’s why I need this.

Too vague.
Post the function.

Possible Reason: If variables are public Unity will take the value defined in the Inspector rather than the value on initialization. But yeah, too vague.