/// <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]); } }
/// <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); } }
public GameSoundEffectDisposedEventArgs(GameSoundEffect gameSoundEffect) { SoundEffect = gameSoundEffect; }