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