예제 #1
0
        internal void UnregisterAudioPack(AudioPack audioPack)
        {
            int hash = Animator.StringToHash(audioPack.name);

            if (_audioDictionary.ContainsKey(hash))
            {
                _audioDictionary.Remove(hash);
            }
        }
예제 #2
0
        internal void RegisterAudioPack(AudioPack audioPack)
        {
            int hash = Animator.StringToHash(audioPack.name);

            if (!_audioDictionary.ContainsKey(hash))
            {
                _audioDictionary.Add(hash, audioPack);
            }
        }