Пример #1
0
 public static void LoadSettings()
 {
     if (File.Exists(path))
     {
         _setting = JsonConvert.DeserializeObject <Setting>(File.ReadAllText(path));
         ManageSettings.ChangeDistance();
         ManageSettings.ChangePreset();
         ManageSettings.ChangeShadows();
         ManageSettings.ChangeVisibleGrass();
     }
 }
Пример #2
0
 void Update()
 {
     //AppDomain.CurrentDomain.GetAssemblies()
     if (Input.GetKeyDown(KeyCode.Insert))
     {
         isOpen           = !isOpen;
         Cursor.lockState = isOpen ? CursorLockMode.None : CursorLockMode.Locked;
         Cursor.visible   = isOpen;
         if (!isOpen)
         {
             ManageSettings.ChangeShadows();
             ManageSettings.ChangeVisibleGrass();
             ManageSettings.ChangePreset();
             ManageSettings.ChangeDistance();
             Config.SaveSettings();
         }
     }
 }