private void HandleGameStateChange(EngineState state) { if (state.IsPaused()) { src.Stop(); ResetProcs(); } }
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(); } }