Exemplo n.º 1
0
 void playEmptySound()
 {
     AudioSourceManager.PlayAudioOneShot(sprayEmpty.GetAudioClip(),
                                         sprayEmpty.GetVolume(),
                                         sprayEmpty.GetPitch(),
                                         sprayEmpty.GetSpatialBlend());
 }
 void onCollectablePickedup(CollectablePickedupEvent collectablePickedup)
 {
     AudioSourceManager.PlayAudioOneShot(collectableSFX.GetAudioClip(),
                                         collectableSFX.GetVolume(),
                                         collectableSFX.GetPitch(),
                                         collectableSFX.GetSpatialBlend());
 }
 private void playSoundEffect()
 {
     AudioSourceManager.PlayAudioOneShot(soundEffect.GetAudioClip(),
                                         soundEffect.GetVolume(),
                                         soundEffect.GetPitch(),
                                         soundEffect.GetSpatialBlend());
 }
Exemplo n.º 4
0
    public void AddLetterToTextField()
    {
        scaleAnimation.PlayAnimation();
        audioSource.PlayOneShot(soundEffect.GetAudioClip(), soundEffect.GetVolume());

        if (textField.text.Length < inputLimit)
        {
            textField.text += key;
        }
    }
 void onGameOver(GameOverEvent gameOverEvent)
 {
     if (!gameOverEvent.IsCompleted)
     {
         AudioSourceManager.PlayAudioOneShot(
             gameOverSound.GetAudioClip(),
             gameOverSound.GetVolume(),
             gameOverSound.GetPitch(),
             gameOverSound.GetSpatialBlend());
     }
 }
Exemplo n.º 6
0
 public void PlayButtonSound()
 {
     AudioSourceManager.PlayAudioOneShot(soundEffect.GetAudioClip(), soundEffect.GetVolume(),
                                         soundEffect.GetPitch(), soundEffect.GetSpatialBlend());
 }
Exemplo n.º 7
0
 public void PlayResetSound()
 {
     audioSource.PlayOneShot(alarmResetSound.GetAudioClip());
 }