I need Help , i want press left ctrl and then the player should get more speed and after 8 secs he should walk normally.Can any one help me pls ?
My Script :
function Update () {
if (Input.GetKeyDown("left ctrl")) {
Time.timeScale = 3.0;
}
}
Whatever you’re using to control the speed of your actual character object, THAT is what you should be changing the speed on and not the timescale. It would be much easier to immediately modify that speed, and then use an
Invoke("Slowdown", 8);
which would then contain some code which changes the speed back to normal.