コード例 #1
0
        public override object GetDeepCopy()
        {
            IController clone = new ColorSineLerpController("clone - " + this.ID,                                           //deep
                                                            this.ControllerType,                                            //deep
                                                            this.startColor,                                                //deep
                                                            this.endColor,                                                  //deep
                                                            (TrigonometricParameters)this.TrigonometricParameters.Clone()); //deep

            clone.SetControllerPlayStatus(this.PlayStatusType);

            return(clone);
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            ColorSineLerpController other = obj as ColorSineLerpController;

            if (other == null)
            {
                return(false);
            }
            else if (this == other)
            {
                return(true);
            }

            return(this.startColor.Equals(other.StartColor) &&
                   this.endColor.Equals(other.EndColor) &&
                   base.Equals(obj));
        }