Ejemplo n.º 1
0
 public ThnSoundInstance(ThnSound snd, Media.SoundInstance ms)
 {
     Object   = snd.Object;
     Spatial  = snd.Spatial;
     Instance = ms;
 }
 public void Play(bool loop)
 {
     lastTranslate = Object.Translate;
     Instance      = man.PlaySound(SoundName, loop, Attenuation,
                                   Props.Dmin, Props.Dmax, Spatial ? (Vector3?)Object.Translate : null);
 }