Exemplo n.º 1
0
 public SoundEffect(GeneralVariables.SFX sfxType, AudioClip audioClip, float volume, float pitch, float spatialBlend)
 {
     this.sfxType      = sfxType;
     this.audioClip    = audioClip;
     this.volume       = volume;
     this.pitch        = pitch;
     this.spatialBlend = spatialBlend;
 }
 public SoundEffect GetSoundEffect(GeneralVariables.SFX soundEffect)
 {
     return(sfxDictionary[soundEffect]);
 }