I implemented a very simple slow motion effect and I want to be able to control when it turns off. However, I cannot get around the fact that the calling off happens during the scaled time hence its affected. Is there another way to do it?
function TimeWarp(){
var warpTime : float = 0.1;
Time.timeScale = warpTime;
yield WaitForSeconds (1);
RescaleTime();
}
function RescaleTime(){
var realtime : float = 1;
Time.timeScale = realtime*10;
}