public void PlaySound(Sounds sound) { if (soundsDictionary.TryGetValue(sound, out AudioClip audioClip)) { EazySoundManager.GetSoundAudio(EazySoundManager.PrepareSound(audioClip)).Play(); } }
private void Start() { dashSfxPrepared = EazySoundManager.PrepareSound(dashSfx); rotateSfxPrepared = EazySoundManager.PrepareSound(rotateSfx); passSfxPrepared = EazySoundManager.PrepareSound(passSfx); spawnObsSfxPrepared = EazySoundManager.PrepareSound(spawnObstSfx); monsterLaughSfxPrepared = EazySoundManager.PrepareSound(monsterLaughSfx); loseSfxPrepared = EazySoundManager.PrepareSound(loseSfx); gainSfxPrepared = EazySoundManager.PrepareSound(gainSfx); //Doozy.Engine.Soundy.SoundyManager.Play(passSfx); }