Exemple #1
0
 //加载所有该角色的音乐
 public void AddAllMusic()
 {
     foreach (string n in musicname)
     {
         if (path != "" && n != "")
         {
             mm.AudioAdd(this.gameObject, path + "/" + n, n);
         }
         else if (n != "")
         {
             mm.AudioAdd(this.gameObject, n, n);
         }
     }
 }