/// <summary>
        /// Copies the properties of this instance into the specified existing instance.
        /// </summary>
        /// <param name="existingInstance">An existing controller instance.</param>
        protected override AbstractController DeepCopy(AbstractController existingInstance)
        {
            var value = (existingInstance as FrustumCullController) ?? new FrustumCullController();

            value.ViewFrustum = this.ViewFrustum;

            return(value);
        }
Exemple #2
0
        /// <summary>
        /// Copies the properties of this instance into the specified existing instance.
        /// </summary>
        /// <param name="existingInstance">An existing controller instance.</param>
        protected override AbstractController DeepCopy(AbstractController existingInstance)
        {
            var value = (existingInstance as CooldownController) ?? new CooldownController();

            value.CooldownPeriod = this.CooldownPeriod;

            return(value);
        }
        /// <summary>
        /// Copies the properties of this instance into the specified existing instance.
        /// </summary>
        /// <param name="existingInstance">An existing controller instance.</param>
        protected override AbstractController DeepCopy(AbstractController existingInstance)
        {
            var value = (existingInstance as TriggerRotationController) ?? new TriggerRotationController();

            value.TriggerRotation = this.TriggerRotation;

            return(value);
        }
Exemple #4
0
        /// <summary>
        /// Copies the properties of this instance into the specified existing instance.
        /// </summary>
        /// <param name="existingInstance">An existing controller instance.</param>
        protected override AbstractController DeepCopy(AbstractController existingInstance)
        {
            var value = (existingInstance as TriggerRandomOffsetController) ?? new TriggerRandomOffsetController();

            value.Size = this.Size;

            return(value);
        }
        /// <summary>
        /// Copies the properties of this instance into the specified existing instance.
        /// </summary>
        /// <param name="existingInstance">An existing controller instance.</param>
        protected override AbstractController DeepCopy(AbstractController existingInstance)
        {
            var value = (existingInstance as TimedReleaseQuantityController) ?? new TimedReleaseQuantityController();

            return(value);
        }