//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 PlaySound(AudioFiles.GameplaySoundClip clip) { _BaseSoundController.PlayGameplaySound(clip, new UnityEngine.Vector3(0, 0, 0)); }