Here is my code…
functrion Update(){
if(Input.GetKeyDown("s")){
if(Time.timeScale == 1.0){
Time.timeScale = 0.1;
print("Time Scale: 0.1");
}
else{
Time.timeScale = 1.0;
print("Time Scale: 1.0");
}
}
}
}
So some odd reason, this isn’t working. The tutorial video I’m using has this exact same code and his works. I checked Unity’s script refrence page and it suggested using Time.fixedDeltaTime = Time.timeScale with it, this did nothing as well. Infact, the print commands only worked for the first two times and then never again. I heard there was a big change to Time.timeScales behaiver when used with function Update(), but that was mainly with have timeScale set to 0. For me, no value works at all.
The only other code I have is two transform commands to make a cube spin and move, nothing else. So I know there’s no other code interferring with this.
Please help?