Exemplo n.º 1
0
 /// <summary>
 ///     Triggers a positional sound effect centered at this object's location
 /// </summary>
 /// <param name="sfx"></param>
 public void TriggerSfx(SfxTypes sfx)
 {
     AudioSource.PlayOneShot(Audioengine.Instance.SfxMapping[sfx]);
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Plays a one shot 2D sound effect.  This has no spatial processing at all
 /// </summary>
 /// <param name="sfx"></param>
 public void Trigger2DSfx(SfxTypes sfx)
 {
     _audioSource2D.PlayOneShot(SfxMapping[sfx]);
 }
Exemplo n.º 3
0
 public AudioClipGroup GetRandClip(SfxTypes type)
 {
     return(map[type]);
 }