public BorderDecorator(IShape theComponent) : base(theComponent) { }
public override void DrawOnShape(IShape shape) { Debug.LogError("Border 里面的 shape 是--" + shape.GetHashCode()); m_RennderEngine.Render("画边框 在" + shape.GetPolygon() + "上"); }
IShape m_Component;//被装饰者 public IShapeDecorator(IShape component) { m_Component = component; }
public abstract void DrawOnShape(IShape shape);