public override bool Equals(object obj)
        {
            UITextObject other = obj as UITextObject;

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

            return(this.text.Equals(other.Text) &&
                   this.spriteFont.Equals(other.SpriteFont) &&
                   base.Equals(obj));
        }
        public new object Clone()
        {
            IActor actor = new UITextObject("clone - " + ID,                     //deep
                                            this.ActorType,                      //deep
                                            this.StatusType,                     //deep - enum type
                                            (Transform2D)this.Transform.Clone(), //deep - calls the clone for Transform3D explicitly
                                            this.Color,                          //deep
                                            this.SpriteEffects,                  //deep - enum type
                                            this.LayerDepth,                     //deep
                                            this.text,                           //deep
                                            this.spriteFont);                    //shallow

            //clone each of the (behavioural) controllers, if we have any controllers attached
            if (this.ControllerList != null)
            {
                foreach (IController controller in this.ControllerList)
                {
                    actor.AttachController((IController)controller.Clone());
                }
            }

            return(actor);
        }