Пример #1
0
 public AmbientSound(Actor self, AmbientSoundInfo info)
 {
     if (self.HasTrait<IOccupySpace>())
         Sound.PlayLooped(info.SoundFile, self.CenterPosition);
     else
         Sound.PlayLooped(info.SoundFile);
 }
Пример #2
0
 public AmbientSound(Actor self, AmbientSoundInfo info)
 {
     if (self == self.World.WorldActor)
     {
         Sound.PlayLooped(info.SoundFile);
     }
     else
     {
         Sound.PlayLooped(info.SoundFile, self.CenterPosition);
     }
 }
Пример #3
0
 public AmbientSound(Actor self, AmbientSoundInfo info)
 {
     if (self.HasTrait <IOccupySpace>())
     {
         Sound.PlayLooped(info.SoundFile, self.CenterPosition);
     }
     else
     {
         Sound.PlayLooped(info.SoundFile);
     }
 }