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