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; }
static PlayerShared() { SoundPool.PlayerShared playerShared = new SoundPool.PlayerShared() { volume = SoundPool.DEF.volume, pitch = SoundPool.DEF.pitch, priority = SoundPool.DEF.priority }; SoundPool.PlayerShared.Default = playerShared; }
public Player2D(AudioClip clip) { this.super = new SoundPool.PlayerShared(clip); this.pan = SoundPool.DEF.pan; }