コード例 #1
0
ファイル: Welcome.cs プロジェクト: lokeypa/nobounce
    static void Startup()
    {
        if (Time.realtimeSinceStartup < 1)
        {
            return;
        }

        EditorApplication.update -= Startup;
        if (!PlayerPrefs.HasKey("DocumentationOpened"))
        {
            Welcome.Initialize();
        }
    }
コード例 #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();
        }
    }
コード例 #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();
        }
    }