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