new public InteractableStaticSprite DeepCopy() { StaticSprite s = base.DeepCopy(); InteractableStaticSprite iss = (InteractableStaticSprite)this.MemberwiseClone(); iss.Box = new Rectangle(s.Box.X, s.Box.Y, s.Box.Width, s.Box.Height); iss.SetID = s.ID; iss.size = new Point(size.X, size.Y); return(iss); }
new public StaticSprite DeepCopy() { BaseObject b = base.DeepCopy(); StaticSprite s = (StaticSprite)this.MemberwiseClone(); s.Box = new Rectangle((int)b.Position.X, (int)b.Position.Y, size.X, size.Y); s.size = new Point(size.X, size.Y); s.SetID = b.ID; s.Position = new Vector2(b.Position.X, b.Position.Y); return(s); }