コード例 #1
0
        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;
        }
コード例 #2
0
        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);
            }
        }