예제 #1
0
 public static void Play(bool isRepeat = false)
 {
     Debug.Log("Play " + audiosource != null);
     if (audiosource != null)
     {
         GameMain.Instance.SoundMgr.StopAll();
         danceVolumeBackup = soundMgr.GetVolumeDance();
         audiosource.Stop();
         audiosource.Play();
         audiosource.loop = isRepeat;
         SetTime(0f);
         SetVolume(danceVolumeBackup);
         Debug.Log("Play " + GetLength());
         Debug.Log("Play " + GetTime());
         Debug.Log("Play " + danceVolumeBackup);
     }
 }
예제 #2
0
 /// <summary>
 /// BGMボリューム取得
 /// </summary>
 public int GetVolumeDance()
 {
     return(soundMgr.GetVolumeDance());
 }