private void OnEnable() { Config.LoadConfiguration(); var scenesViewState = Config.AssetBundleScenes ?? new PlayInstantSceneTreeView.State(); _playInstantSceneTreeTreeView = new PlayInstantSceneTreeView(scenesViewState); _playInstantSceneTreeTreeView.OnTreeStateChanged += (treeState) => { Config.AssetBundleScenes = treeState; Config.SaveConfiguration(true); }; }
void OnEnable() { _treeViewState = new TreeViewState(); _playInstantSceneTreeTreeView = new PlayInstantSceneTreeView(_treeViewState); }