Пример #1
0
 //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);
 }
Пример #2
0
 public void PlaySound(AudioFiles.GameplaySoundClip clip)
 {
     _BaseSoundController.PlayGameplaySound(clip, new UnityEngine.Vector3(0, 0, 0));
 }