public void Copy(AudioRandomContainerItem reference) { base.Copy(reference); originalSettings = reference.originalSettings; settings = reference.settings; }
public void Initialize(AudioRandomContainerSettings settings, AudioItemManager itemManager, AudioSpatializer spatializer, IAudioItem parent) { base.Initialize(settings.Identifier, itemManager, spatializer, parent); originalSettings = settings; this.settings = PrefabPoolManager.Create(settings); InitializeModifiers(originalSettings); InitializeSources(); for (int i = 0; i < originalSettings.Options.Count; i++) { ApplyOption(originalSettings.Options[i], false); } }