public static void Init() { // New Editor window does not support Unity 4. if (Application.unityVersion[0] == '4') { EditorUtility.DisplayDialog("Not supported in Unity 4", "The Easy Save Window is only supported on Unity 5 and above. Please use the tools found in 'Assets > Easy Save 2' instead.", "Ok"); return; } ES2EditorWindow window = (ES2EditorWindow)EditorWindow.GetWindow <ES2EditorWindow>(); window.Show(); }
/* * Initialization should go here. */ public void OnEnable() { instance = this; }