private void OnLetterDisplayed()
 {
     if (isNearPlayer)
     {
         if (isSaved)
         {
             soundMananger.PlaySoundEffect(letterSoundThankful, soundMananger.soundVolume, currentDialogBubble.transform.position, baseAudioPitch + Random.Range(-0.3f, 0.3f));
         }
         else if (isKilled)
         {
             soundMananger.PlaySoundEffect(letterSoundDead, soundMananger.soundVolume, currentDialogBubble.transform.position, baseAudioPitch + Random.Range(-0.3f, 0.3f));
         }
         else
         {
             soundMananger.PlaySoundEffect(letterSoundHectic, soundMananger.soundVolume, currentDialogBubble.transform.position, baseAudioPitch + Random.Range(-0.3f, 0.3f));
         }
     }
 }
Exemple #2
0
 private void OnLetterDisplayed()
 {
     soundMananger.PlaySoundEffect(letterSound, soundMananger.soundVolume, currentDialogBubble.transform.position, baseAudioPitch + Random.Range(-0.3f, 0.3f));
 }