// Begin the gameOver sequence.
    // result is the altitude that was reached in this session.
    public void gameOver(float result)
    {
        isGameOver = true;

        bool newEndlessHighScore = false;

        if (system.isEndless())
        {
            if (result > system.getHighscore())
            {
                system.setHighscore(result);
                newEndlessHighScore = true;
            }
        }

        GO.init(result, newEndlessHighScore);
    }
    // Use this for initialization
    void Start()
    {
        timer = 0f;
        // Fetch system object
        if (!GameObject.Find("rocketGameSystem"))
        {
            system = GameObject.Instantiate(systemPrefab).GetComponent <RocketGameSystem> ();
            //system.init ();
        }
        else
        {
            system = GameObject.Find("rocketGameSystem").GetComponent <RocketGameSystem> ();
        }

        Text t = GameObject.Find("MainCanvas/endless/highscorebox/text/highscore").GetComponent <Text> ();

        t.text = system.getHighscore() + "m";

        player = GameObject.Find("MainCanvas/playerObject_levelSelect").GetComponent <RocketGameLevelSelectPlayerObject> ();


        setButtonEventListeners();
    }