Ejemplo n.º 1
0
    static void Startup()
    {
        if (Time.realtimeSinceStartup < 1)
        {
            return;
        }

        EditorApplication.update -= Startup;
        if (!PlayerPrefs.HasKey("DocumentationOpened"))
        {
            Welcome.Initialize();
        }
    }
Ejemplo n.º 2
0
    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();
        }
    }
Ejemplo n.º 3
0
    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();
        }
    }