public static void SetTimeScale(float scale) { if (Instance != null) { Instance.TimeManager.TimeScale = scale; } else { SimulatorTimeManager.SetUnityTimeScale(scale); } }
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); } }