Hi Guys,
In my game when I die I want to slowly slow down time till it stops absolutely.
For some reason this doesnt work.
Time.timeScale = Mathf.Lerp(1.0f, 0.0f, 0.2f);
Thanks
Hi Guys,
In my game when I die I want to slowly slow down time till it stops absolutely.
For some reason this doesnt work.
Time.timeScale = Mathf.Lerp(1.0f, 0.0f, 0.2f);
Thanks
Mathf.Lerp(1.0f, 0.0f, 0.2f);
always results in value 0.8.
You probably want something like this: Mathf.Lerp(Time.timeScale, 0.0f, 0.2f);
(or Mathf.Lerp(Time.timeScale, 0.0f, 0.02f
) in order to make it slower transition)