public static void Init() { // Get existing open window or if none, make a new one: HornetRifleSplash window = (HornetRifleSplash)EditorWindow.GetWindow(typeof(HornetRifleSplash)); Vector2 size = new Vector2(500, 650); window.minSize = size; window.maxSize = size; window.Show(); }
static LaunchHornetRifleSplash() { string key = "HornetRifleSplash"; if (!EditorPrefs.HasKey(key)) { EditorPrefs.SetBool(key, true); HornetRifleSplash.Init(); } //EditorPrefs.DeleteKey (key); }