public void Copy(AudioSequenceContainerItem reference) { base.Copy(reference); originalSettings = reference.originalSettings; settings = reference.settings; deltaTime = reference.deltaTime; lastTime = reference.lastTime; delay = reference.delay; sourcesIndex = reference.sourcesIndex; }
public void Initialize(AudioSequenceContainerSettings 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); } }