Esempio n. 1
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 FrustumCullController) ?? new FrustumCullController();

            value.ViewFrustum = this.ViewFrustum;

            return(value);
        }
Esempio n. 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);
        }
Esempio n. 3
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 TriggerRotationController) ?? new TriggerRotationController();

            value.TriggerRotation = this.TriggerRotation;

            return(value);
        }
Esempio n. 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);
        }