void Awake() { if (m_currentInstance != null) { Destroy(m_currentInstance.gameObject); } m_currentInstance = this; }
/// <summary> /// BGMの再生続行 /// </summary> public static void ContinueBGM() { UniqueAudioController.Continue(); }
/// <summary> /// BGMの再生中断 /// </summary> public static void PauseBGM() { UniqueAudioController.Pause(); }
/// <summary> /// BGMの音量を調整する /// </summary> /// <param name="volume">音量</param> public static void SetVolumeBGM(float volume) { UniqueAudioController.SetVolume(volume); }
/// <summary> /// BGMを最初から再生する /// </summary> public static void RePlayBGM() { UniqueAudioController.RePlay(); }