There may be some setting somewhere in your script. It can be on the update function or OnGUI (). So reread all the code again to find the issue. Also, you can set the timescale = 1 at the beginning.
Thank god for this post, I had the same thing just happen to me, spent 20 minutes browsing all of the recent changes I made to my code, gave up in frustration and then decided to check answers to see if it was an issue others have had. Never once did I open up the Project > Time window to change that value to 0, not sure why or how it happened but thanks for this post.
Then change your execution order so that timetest is the first in the list. This way, if you see timeScale as 1. We know one of your scripts is changing it.
<-replay by timsk->
buy create a new empty scene delete all the gameobjects, and create a empty gameobject just attach the script alone.
Note : before press the play set the project timescale to 1, form the projectSetting → Time → timescale.
Left me konw what if is works, and timescale doesn’t change to 0!
The idea is like that, normally timeScale defaults to 1 in “Edit->Project Settings->Time”, but if in your code at some moment you change timeScale to 0(e.g. when you emulate game pause) then that value will change to 0 in project settings, and if you have the bad inspiration to “Save Project” in Unity Editor exactly while your game is paused and even more to close Unity Editor immediately after, then next time you’ll open Unity Editor you’ll have that value to 0 in project settings without even noticing.