예제 #1
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);
     }
 }