Unity Setting Integer to 0 continuously?
I have a public integer representing difficult ranging from 1-3, but Unity keeps setting it to 0. It's set to 1 in the inspector, the Start function, and a SetDifficulty function has an override to set it to 1 if it's set to 0 somehow, yet by running Debug.Log in Update I can see it is always 0. It never did this before today, no other scripts interact with it, and I tried making it private or serializing it to no avail. Has anyone ever had this issue? I'm not sure what's happening.
Unity.4.26f1.
Your answer
Follow this Question
Related Questions
In Game Programming Language 1 Answer
Instantiate no longer working? 3 Answers
Delete item in inventory 0 Answers
Get and Set only work on public variable? 1 Answer
Google play services won't start. 0 Answers