Example #1
0
 public Player3D(AudioClip clip)
 {
     this.super = new SoundPool.PlayerShared(clip);
     this.minDistance = SoundPool.DEF.min;
     this.maxDistance = SoundPool.DEF.max;
     this.spread = SoundPool.DEF.spread;
     this.dopplerLevel = SoundPool.DEF.doppler;
     this.panLevel = SoundPool.DEF.panLevel;
     this.rolloffMode = SoundPool.DEF.mode;
     this.bypassEffects = SoundPool.DEF.bypassEffects;
     this.cameraSticky = false;
 }
Example #2
0
 static PlayerShared()
 {
     SoundPool.PlayerShared playerShared = new SoundPool.PlayerShared()
     {
         volume = SoundPool.DEF.volume,
         pitch = SoundPool.DEF.pitch,
         priority = SoundPool.DEF.priority
     };
     SoundPool.PlayerShared.Default = playerShared;
 }
Example #3
0
 public Player2D(AudioClip clip)
 {
     this.super = new SoundPool.PlayerShared(clip);
     this.pan = SoundPool.DEF.pan;
 }