Once i click a cube in my game i wish for the timescale to be half, therefore halfing the games time, the problem is how do i do this for say 5 seconds? Is there any way of possibly keeping it in the slowed state for 5 seconds?
Im new to unity so thanks!
But be aware that you would have to wait for 2.5 seconds not 5 using WaitForSeconds if you'd halved the timescale.
– whydoidoitThe following in a coroutine will wait for 5 seconds even if the timeScale is 0 (c#): var t = Time.realtimeSinceStartup; while((Time.realtimeSinceStartip - t) < 5) yield return null;
– whydoidoit