Slow Motion

This script can be placed on any empty object in the scene, it will control the slow motion system

With this script added to some GameObject in the Scene, you can use this line of code anywhere to make the Slow Motion effect

//Timescale will be set to 0.2f and will increase to 1 for 2 seconds
Slowmotion.DoSlowMotion(timescale:0.2f, duration: 2);

Last updated