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); } }
/// <summary> /// BGMボリューム取得 /// </summary> public int GetVolumeDance() { return(soundMgr.GetVolumeDance()); }