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

            clone.SetControllerPlayStatus(this.PlayStatusType);

            return(clone);
        }
        public override bool Equals(object obj)
        {
            UIColorSineLerpController other = obj as UIColorSineLerpController;

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

            return(this.colorMin.Equals(other.ColorMin) &&
                   this.colorMax.Equals(other.ColorMax) &&
                   base.Equals(obj));
        }