public void Start() { Subject realMan = new RealSubject(); Subject robotBody = new Proxy(realMan as RealSubject); robotBody.Request(); }
public override void Request() { if (subject == null) { subject = new RealSubject(); } subject.Request(); }
public Proxy(RealSubject subject) { this.subject = subject; }