Example #1
0
        /// <summary>
        /// Builds the target.
        /// </summary>
        /// <param name="target">The target.</param>
        public void Build(BuildTarget target)
        {
            if (target == null)
                throw new ArgumentNullException(nameof(target));

            Editor.Log("Building target");
            _buildingQueue.Enqueue(target.DeepClone());
        }
        /// <summary>
        /// Builds the target.
        /// </summary>
        /// <param name="preset">The preset.</param>
        /// <param name="target">The target.</param>
        public void Build(BuildPreset preset, BuildTarget target)
        {
            if (target == null)
            {
                throw new ArgumentNullException(nameof(target));
            }

            Editor.Log("Building target");
            _buildingQueue.Enqueue(new QueueItem
            {
                PresetName = preset.Name,
                Target     = target.DeepClone(),
            });
        }