예제 #1
0
 public override void Init(IGameSettingsViewModel viewModel)
 {
     soundLevel
     .OnValueChangedAsObservable()
     .Throttle(TimeSpan.FromSeconds(1))
     .Subscribe(i => new object())
     .AddTo(gameObject);
     musicEnabled.BindToggleTo(viewModel.musicEnabled);
     soundEnabled.BindToggleTo(viewModel.soundEnabled);
     soundLevel.BindValueTo(viewModel.soundLevel);
     musicLevel.BindValueTo(viewModel.musicLevel);
 }