Пример #1
0
 public static AudioClipHandle ReleaseHandle(AudioClipHandle handle)
 {
     if (handle != null)
     {
         handle.StopAndRelease();
     }
     return(null);
 }
Пример #2
0
        public AudioClipHandle StopAudio(AudioClipHandle clipHandler)
        {
            if (clipHandler == null)
            {
                D.AudioWarning("Trying to stop null AudioClipHandle!");
                return(null);
            }

            clipHandler.StopAndRelease();
            return(null);
        }