コード例 #1
0
ファイル: SoundPool.cs プロジェクト: HexHash/LegacyRust
 public PlayerLocal(AudioClip clip)
 {
     this.super = new SoundPool.Player3D(clip);
     this.localPosition = new Vector3();
     this.localRotation = Quaternion.identity;
 }
コード例 #2
0
ファイル: SoundPool.cs プロジェクト: HexHash/LegacyRust
 public PlayerWorld(AudioClip clip)
 {
     this.super = new SoundPool.Player3D(clip);
     this.position = new Vector3();
     this.rotation = Quaternion.identity;
 }
コード例 #3
0
ファイル: SoundPool.cs プロジェクト: HexHash/LegacyRust
 static Player3D()
 {
     SoundPool.Player3D player3D = new SoundPool.Player3D()
     {
         super = SoundPool.PlayerShared.Default,
         minDistance = SoundPool.DEF.min,
         maxDistance = SoundPool.DEF.max,
         rolloffMode = SoundPool.DEF.mode,
         spread = SoundPool.DEF.spread,
         dopplerLevel = SoundPool.DEF.doppler,
         bypassEffects = SoundPool.DEF.bypassEffects,
         panLevel = SoundPool.DEF.panLevel
     };
     SoundPool.Player3D.Default = player3D;
 }