Exemplo n.º 1
0
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* 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();
     }
 }
Exemplo n.º 2
0
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* 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();
     }
 }
Exemplo n.º 3
0
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* 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();
     }
 }