static void RunOnce() { EditorApplication.update -= RunOnce; SetScriptingDefineSymbols(); // do something here. You could open an EditorWindow, for example. WelcomeVerySimpleLeaderboard.showAtStartup = EditorPrefs.GetInt(WelcomeVerySimpleLeaderboard.PREFSHOWATSTARTUP, 1) == 1; if (EditorPrefs.GetInt(WelcomeVerySimpleLeaderboard.PREFSHOWATSTARTUP, 1) == 1) { WelcomeVerySimpleLeaderboard.OpenPopupStartup(); } }
static void RunOnce() { EditorApplication.update -= RunOnce; // do something here. You could open an EditorWindow, for example. if (DGChecker.needDotween == true && (!Directory.Exists("Assets/Demigiant") || Directory.Exists("Assets/DOTween"))) { DGChecker.OpenPopupDGCHECKERStartup(); return; } if (DOSCIRPTINGSYMBOL) { SetScriptingDefineSymbols(); } int count = EditorPrefs.GetInt(WelcomeVerySimpleLeaderboard.PREFSHOWATSTARTUP + "autoshow", 0); if (count == 10 || count == 30 || count == 50 || count == 80 || count == 100) { Application.OpenURL("http://u3d.as/oWD"); } EditorPrefs.SetInt(WelcomeVerySimpleLeaderboard.PREFSHOWATSTARTUP + "autoshow", count + 1); WelcomeVerySimpleLeaderboard.showAtStartup = EditorPrefs.GetInt(WelcomeVerySimpleLeaderboard.PREFSHOWATSTARTUP, 1) == 1; if (WelcomeVerySimpleLeaderboard.showAtStartup) { DGChecker.CheckItNow(); WelcomeVerySimpleLeaderboard.OpenPopupStartup(); } }