Example #1
0
 public PDSpatializer(PDEditorModule editorModule, PDPlayer pdPlayer)
 {
     this.moduleName    = editorModule.Name;
     this.source        = editorModule.Source;
     this.volumeRolloff = editorModule.VolumeRolloff;
     this.minDistance   = editorModule.MinDistance;
     this.maxDistance   = editorModule.MaxDistance;
     this.panLevel      = editorModule.PanLevel;
     this.pdPlayer      = pdPlayer;
 }
Example #2
0
 void CheckForChanges()
 {
     if (pVolumeRolloff != volumeRolloff || pMinDistance != minDistance || pMaxDistance != maxDistance || pPanLevel != panLevel)
     {
         changed        = true;
         pVolumeRolloff = volumeRolloff;
         pMinDistance   = minDistance;
         pMaxDistance   = maxDistance;
         pPanLevel      = panLevel;
     }
     if (source != null && (source.transform.hasChanged || Instance.listenerTransform.hasChanged))
     {
         changed = true;
         Instance.SetTransformHasChanged(source.transform, false);
         Instance.SetTransformHasChanged(Instance.listenerTransform, false);
     }
 }