//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // * New Callback Method: On "CONSECUTIVELY_STATIC" Play Triggered //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ private void OnConsecutivelyStaticPlayTriggered() { if (sm_iUsedAudioID == -1 || !AudioSourceManager.IsPlayingAudio(sm_iUsedAudioID)) { sm_iUsedAudioID = AudioSourceManager.PlayAudioClip(m_acClipToPlay); LowerSceneBGM(); } }
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // * New Callback Method: On "CONSECUTIVELY" Play Triggered //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ private void OnConsecutivelyPlayTriggered() { if (m_iProvidedAudioID == -1 || !AudioSourceManager.IsPlayingAudio(m_iProvidedAudioID, m_acClipToPlay)) { m_iProvidedAudioID = AudioSourceManager.PlayAudioClip(m_acClipToPlay); LowerSceneBGM(); } }
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // * New Callback Method: On "CONSECUTIVELY_STATIC_PRIORITY" Play Triggered //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ private void OnConsecutivelyStaticPriorityPlayTriggered() { if (sm_iUsedAudioID == -1 || !AudioSourceManager.IsPlayingAudio(sm_iUsedAudioID)) { sm_iUsedAudioID = AudioSourceManager.PlayAudioClip(m_acClipToPlay); LowerSceneBGM(); } else if (AudioSourceManager.GetSelectedAudioClip(sm_iUsedAudioID) != m_acClipToPlay) { AudioSourceManager.StopAudio(sm_iUsedAudioID); sm_iUsedAudioID = AudioSourceManager.PlayAudioClip(m_acClipToPlay); LowerSceneBGM(); } }