Beispiel #1
0
 /// <summary>
 /// Plays a game play sound effect
 /// </summary>
 /// <param name="name">the name of the sound effect</param>
 public void PlayGamePlaySoundEffect(GameSoundEffect name)
 {
     if (gameSoundEffectsDict.ContainsKey(name))
     {
         gameAudioSource.PlayOneShot(gameSoundEffectsDict[name]);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Gets a game sound effect audio clip
 /// </summary>
 /// <param name="effect">the clip to get</param>
 /// <returns>the audio clip</returns>
 public AudioClip GetAudioClip(GameSoundEffect effect)
 {
     if (gameSoundEffectsDict.ContainsKey(effect))
     {
         return(gameSoundEffectsDict[effect]);
     }
     else
     {
         return(null);
     }
 }
Beispiel #3
0
 public GameSoundEffectDisposedEventArgs(GameSoundEffect gameSoundEffect)
 {
     SoundEffect = gameSoundEffect;
 }