예제 #1
0
 private void HandleGameStateChange(EngineState state)
 {
     if (state.IsPaused())
     {
         src.Stop();
         ResetProcs();
     }
 }
예제 #2
0
 private void HandleGameStateChange(EngineState state)
 {
     if (state.IsPaused() && (bgm?.StopOnPause ?? false))
     {
         src1.Pause();
         src2.Pause();
     }
     else if (state == EngineState.RUN && (bgm?.StopOnPause ?? true))
     {
         src1.UnPause();
         src2.UnPause();
     }
 }