void CheckToPlayTheMusic()
 {
     if (GamePrefences.GetMusicState() == 1)
     {
         MusicControllar.instance.playMusic(true);
         musicbutton.image.sprite = musicIcons[1];
     }
     else
     {
         MusicControllar.instance.playMusic(false);
         musicbutton.image.sprite = musicIcons[0];
     }
 }
 public void MusicButton()
 {
     if (GamePrefences.GetMusicState() == 0) //false
     {
         GamePrefences.SetMusicState(1);     //true
         MusicControllar.instance.playMusic(true);
         musicbutton.image.sprite = musicIcons[1];
     }
     else if (GamePrefences.GetMusicState() == 1) //currently playing
     {
         GamePrefences.SetMusicState(0);          //true
         MusicControllar.instance.playMusic(false);
         musicbutton.image.sprite = musicIcons[0];
     }
 }