/// <summary>
 /// Speichert die Musik und die Einstellung ueber die Level hinweg.
 /// </summary>
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
         GameObject.DontDestroyOnLoad(gameObject);
     }
 }
    //for the background music to be ON in all scencs
    void Awake()
    {
        if (!_instance)
        {
            _instance = this;
        }
        else
        {
            Destroy(this.gameObject);
        }

        DontDestroyOnLoad(this.gameObject);
    }
 /// <summary>
 /// Ruft die Methode UpdateIconAndVolume auf.
 /// </summary>
 void Start()
 {
     backgroundmusic = GameObject.FindObjectOfType <Backgroundmusic>();
     UpdateIconAndVolume();
 }