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"); } } }