Beispiel #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());
 }
Beispiel #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());
 }