Beispiel #1
0
 private void InitSaveButton()
 {
     SaveButton.onClick.AddListener(() =>
     {
         Config.SubtitlesOn  = SubtitlesOn;
         Config.IsFullscreen = FullScreenOn;
         Config.Resolution   = CurrentResolution;
         Screen.SetResolution(CurrentResolution.Width,
                              CurrentResolution.Height,
                              FullScreenOn);
         ScreensNavigator.CloseOptionsScreen();
     });
 }
Beispiel #2
0
 public override void OnEscape()
 {
     ScreensNavigator.CloseOptionsScreen();
 }