Ejemplo n.º 1
0
 public PDEditorModule(string name, PDEditorModule editorModule, PDPlayer pdPlayer)
 {
     this.name          = name;
     this.volume        = editorModule.Volume;
     this.source        = editorModule.Source;
     this.volumeRolloff = editorModule.VolumeRolloff;
     this.minDistance   = editorModule.MinDistance;
     this.maxDistance   = editorModule.MaxDistance;
     this.panLevel      = editorModule.PanLevel;
     this.pdPlayer      = pdPlayer;
 }
Ejemplo n.º 2
0
 public PDEditorModule(string name, AudioStates state, float volume, GameObject source, PDSpatializer.RolloffMode volumeRolloff, float minDistance, float maxDistance, float panLevel)
 {
     this.name          = name;
     this.state         = state;
     this.volume        = volume;
     this.source        = source;
     this.volumeRolloff = volumeRolloff;
     this.minDistance   = minDistance;
     this.maxDistance   = maxDistance;
     this.panLevel      = panLevel;
 }
Ejemplo n.º 3
0
 public PDEditorModule(PDModule module, PDPlayer pdPlayer)
 {
     this.name          = module.Name;
     this.volume        = module.GetVolume();
     this.source        = module.spatializer.Source;
     this.volumeRolloff = module.spatializer.VolumeRolloff;
     this.minDistance   = module.spatializer.MinDistance;
     this.maxDistance   = module.spatializer.MaxDistance;
     this.panLevel      = module.spatializer.PanLevel;
     this.pdPlayer      = pdPlayer;
 }