// ------------------------------------------------------------------------

    void OnGUI()
    {
        if (ar == null)
        {
            ar = new AspectRatio();
        }
        ar.initGuiScale();
        drawNotification();
    }
Beispiel #2
0
    // ------------------------------------------------------------------------

    void OnGUI()
    {
        GUI.skin = skin;
        ar.initGuiScale();
        centerBackground();

        switch (currentMenu)
        {
        case Menu.main: drawMainMenu(); break;

        case Menu.levelselect:  drawLevelSelect(); break;
        }
    }