Beispiel #1
0
 private void OnAudioEnd()
 {
     if (finishCallback != null)
     {
         finishCallback();
     }
     finishCallback = null;
     StopAudio();
 }
        public void AddVoiceFinishCallback(int channel, AudioFinishCallback callback)
        {
            AudioLayerUnity audioLayerUnity = channelDictionary[GetChannelByTypeChannel(AudioType.Voice, channel)];

            audioLayerUnity.RegisterCallback(callback);
        }
Beispiel #3
0
 public void RegisterCallback(AudioFinishCallback callback)
 {
     finishCallback = (AudioFinishCallback)Delegate.Combine(finishCallback, callback);
 }
Beispiel #4
0
 public void AddVoiceFinishCallback(int channel, AudioFinishCallback callback)
 {
     channelDictionary[GetChannelByTypeChannel(AudioType.Voice, channel)].RegisterCallback(callback);
 }