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