Example #1
0
 public void LoadMusic(string Path)
 {
     if (Loader != null)
     {
         Debug.Log("loading music");
         Music music = Loader.LoadMusicFromPath(Path);
         if (music == null)
         {
             print("Can't Load music = null");
         }
         else
         {
             listMusic.Add(music);
             nbMusic += 1;
         }
     }
     else
     {
         Debug.Log("Loader not attached");
     }
 }