public static void SetTimeScale(float scale) { //Null value is expected when simulation is stopped if (_instance != null) { Instance.TimeManager.TimeScale = scale; } else { SimulatorTimeManager.SetUnityTimeScale(scale); } }