public static void ShowWindow() { if (instance == null) { var window = GetWindow <JSDicCompare>(false, "JSDicCompare", true); window.minSize = new Vector2(872f, 680f); window.Show(); } else { instance.Close(); instance = null; } }
private void OnEnable() { instance = this; }