public static void Open(ShellExecutor executor) { if (_instance != null) { _instance.Close(); } _executor = executor; var win = ShellExecutorEditWindow.CreateInstance <ShellExecutorEditWindow>(); win.titleContent = new GUIContent("Editor"); win.ShowUtility(); _instance = win; }
private void OnDisable() { _inspestor = null; _executor = null; }