public void GameLost()
    {
        StarDisplay.GameOver();

        gameOver       = true;
        Time.timeScale = 0;

        loseCanvas.SetActive(true);
        musicPlayer.PlayDefeatSound();
    }
    private void GameWon()
    {
        StarDisplay.GameOver();
        winCanvas.SetActive(true);

        int gameLevel  = level.GetLevel();
        int levelIndex = gameLevel + offsetIndex;

        if (gameLevel != maxLevel)
        {
            musicPlayer.PlayVictorySound(false);
            GetComponent <LevelLoader>().LoadLevel(++levelIndex, delayBeforeNextLevel);
        }
        else  // Load Main Menu
        {
            musicPlayer.PlayVictorySound(true);

            // Game won, so the next time we hit play start from the first level
            PlayerPrefsController.SetLevelIndex(3);
            //--------------------------------------

            GetComponent <LevelLoader>().LoadLevel(mainMenuIndex, lastLevelDelay);
        }
    }