コード例 #1
0
ファイル: AmbientSound.cs プロジェクト: rhamilton1415/OpenRA
 public AmbientSound(Actor self, AmbientSoundInfo info)
 {
     if (self.HasTrait<IOccupySpace>())
         Sound.PlayLooped(info.SoundFile, self.CenterPosition);
     else
         Sound.PlayLooped(info.SoundFile);
 }
コード例 #2
0
ファイル: AmbientSound.cs プロジェクト: ushalin/OpenRA
 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);
     }
 }