Exemplo n.º 1
0
 /// <summary>
 /// Plays a random clip from a
 /// </summary>
 /// <param name="bgmGroup"></param>
 public void Play(BGMGroup bgmGroup)
 {
     if (!bgmGroup)
     {
         return;
     }
     _group = bgmGroup;
     Play(bgmGroup.GetRandom());
 }
Exemplo n.º 2
0
 /// <summary> Plays a random clip from a </summary>
 /// <param name="bgmGroup"> </param>
 public void Play(BGMGroup bgmGroup)
 {
     if (!bgmGroup)
     {
         _musicSource.Stop();
         return;
     }
     _group = bgmGroup;
     Play(bgmGroup.GetRandom());
 }