protected void Save(ScriptableObject asset, VIEWMODEL viewData)
        {
            if (!(asset == null) && !(viewData == null))
            {
                string text = ScriptableObjectViewPrefs <VIEWMODEL> .AssetKey(asset);

                if (!string.IsNullOrEmpty(text))
                {
                    string path = Application.get_dataPath() + "/../" + this.GetFilePath();
                    if (!Directory.Exists(path))
                    {
                        Directory.CreateDirectory(path);
                    }
                    InternalEditorUtility.SaveToSerializedFileAndForget(new VIEWMODEL[]
                    {
                        viewData
                    }, this.GetProjectRelativePath(text), true);
                }
            }
        }
        private void Load(ScriptableObject asset)
        {
            VIEWMODEL vIEWMODEL = (VIEWMODEL)((object)null);
            string    text      = ScriptableObjectViewPrefs <VIEWMODEL> .AssetKey(asset);

            if (!string.IsNullOrEmpty(text))
            {
                Object[] array = InternalEditorUtility.LoadSerializedFileAndForget(this.GetProjectRelativePath(text));
                if (array.Length > 0)
                {
                    vIEWMODEL = (array[0] as VIEWMODEL);
                    vIEWMODEL.set_hideFlags(vIEWMODEL.get_hideFlags() | 61);
                }
            }
            this.m_ActiveAsset = asset;
            VIEWMODEL arg_79_1;

            if ((arg_79_1 = vIEWMODEL) == null)
            {
                arg_79_1 = this.CreateNewViewModel();
            }
            this.m_ActiveViewModel = arg_79_1;
        }