Пример #1
0
        public bool RemoveListenerPYAudio(AudioClip audioClip, PYAudioSource.EventListenerData listener)
        {
            if (!audioClip)
            {
                return(false);
            }

            return(RemoveListenerPYAudio((PYAudioTags)ConvertNameToTag(audioClip.name), listener));
        }
Пример #2
0
 public bool RemoveListenerPYAudio(PYAudioTags audioTag, PYAudioSource.EventListenerData listener)
 {
     if (_audioSourceActions.ContainsKey(audioTag))
     {
         return(_audioSourceActions[audioTag].Remove(listener));
     }
     else
     {
         return(false);
     }
 }