Пример #1
0
            public void Reset()
            {
                CreateSettingsAsset();

                m_editorSyncedSettings.ClearPrefs();
                m_editorSyncedSettings = null;
                GetOrCreateSyncedSettings();
                m_editorSyncedSettings.Sync();

                GridWindow.ResetSceneGrid();
            }
Пример #2
0
 private void GetOrCreateSyncedSettings()
 {
     if (m_editorSyncedSettings == null || !m_editorSyncedSettings.hasSettings)
     {
         if (GridSettings.instance == null)
         {
             CreateSettingsAsset();
         }
         m_editorSyncedSettings = new EditorSyncedSettings(GridSettings.instance, "mx_gridsettings");
     }
 }