Exemplo n.º 1
0
    void Start()
    {
        hud = FindObjectOfType<HUD>();

        currentLevel = Application.loadedLevel;

        if (hud)
        {
            if (IsLevelUnlocked(currentLevel))
            {
                hud.ShowHint("Press SPACEBAR to skip to next level");
            }
            else
            {
                hud.ShowHint("Press ESC to start over");
            }
        }
    }