예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }