static void Startup() { if (Time.realtimeSinceStartup < 1) { return; } EditorApplication.update -= Startup; if (!PlayerPrefs.HasKey("DocumentationOpened")) { Welcome.Initialize(); } }
static void Startup() { if (Time.realtimeSinceStartup < 1) { return; } EditorApplication.update -= Startup; if (!PlayerPrefs.HasKey("Documentation_Opened")) { // Do your stuff here, // Welcome window = (Welcome)EditorWindow.GetWindow (typeof (Welcome), true, "PLEASE HAVE A LOOK TO THE DOCUMENTATION"); // window.Show(); // window.Repaint(); Welcome.Initialize(); } }
static void Startup() { // wait... // ...for one second if (Time.realtimeSinceStartup < 1) { return; } // remove handler EditorApplication.update -= Startup; // check if Playerprefs are set. // if not, open the welcome screen if (!PlayerPrefs.HasKey("Documentation_Opened")) { Welcome.Initialize(); } }