public AmbientSound(Actor self, AmbientSoundInfo info) { if (self.HasTrait<IOccupySpace>()) Sound.PlayLooped(info.SoundFile, self.CenterPosition); else Sound.PlayLooped(info.SoundFile); }
public AmbientSound(Actor self, AmbientSoundInfo info) { if (self == self.World.WorldActor) { Sound.PlayLooped(info.SoundFile); } else { Sound.PlayLooped(info.SoundFile, self.CenterPosition); } }
public AmbientSound(Actor self, AmbientSoundInfo info) { if (self.HasTrait <IOccupySpace>()) { Sound.PlayLooped(info.SoundFile, self.CenterPosition); } else { Sound.PlayLooped(info.SoundFile); } }