Exemplo n.º 1
0
        public override object GetDeepCopy()
        {
            IController clone = new TranslationSineLerpController("clone - " + this.ID,                                           //deep
                                                                  this.ControllerType,                                            //deep
                                                                  this.lerpDirection,                                             //deep
                                                                  (TrigonometricParameters)this.TrigonometricParameters.Clone()); //deep

            clone.SetControllerPlayStatus(this.PlayStatusType);

            return(clone);
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            TranslationSineLerpController other = obj as TranslationSineLerpController;

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

            return(this.lerpDirection.Equals(other.LerpDirection) &&
                   base.Equals(obj));
        }