//play sound 3D
 public void PlayGameplaySound(AudioFiles.GameplaySoundClip sound, Vector3 position)
 {
     if (gameplaySoundLookup == null)
     {
         CreateLookups();
     }
     if (!gameplaySoundLookup.ContainsKey(sound))
     {
         Debug.LogError("No Sound Found in Sound Lookup");
         return;
     }
     tempSoundObj = gameplaySoundLookup[sound];
     tempSoundObj.PlaySound(position);
 }
 public void PlayUISound(AudioFiles.UISoundClip sound)
 {
     if (uiSoundLookup == null)
     {
         CreateLookups();
     }
     if (!uiSoundLookup.ContainsKey(sound))
     {
         Debug.LogError("No Sound Found in Sound Lookup");
         return;
     }
     tempSoundObj = uiSoundLookup[sound];
     tempSoundObj.PlaySound();
 }
        public void PlaySound(SoundBank.Type key, GameObject obj = null, bool Randompitch = false)
        {
            if (_levelAudioMap == null)
            {
                return;
            }

            if (!_levelAudioMap.ContainsKey(key))
            {
                Debug.LogError(key + " Not Found in Sound Lookup");
            }
            else
            {
                SoundObject soundObj = _levelAudioMap[key];
                soundObj.PlaySound(obj, Randompitch);
            }
        }