public static void ShowWindow(ToolBarSelectedButton select) { var window = GetWindow <QuickDeployWindow>(true, "Quick Deploy"); window.minSize = new Vector2(WindowMinWidth, WindowMinHeight); _toolbarSelectedButtonIndex = (int)select; Config.LoadConfiguration(); }
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); }; }