コード例 #1
0
        public void Copy(AudioRandomContainerItem reference)
        {
            base.Copy(reference);

            originalSettings = reference.originalSettings;
            settings         = reference.settings;
        }
コード例 #2
0
        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);
            }
        }