// Use this for initialization void Start() { MyConcreteMediator p = new MyConcreteMediator(); ConColleageOne c1 = new ConColleageOne(p); ConColleageTwo c2 = new ConColleageTwo(p); p.SetM1(c1); p.SetM2(c2); c1.Action(); c2.Action(); }
public void SetM1(ConColleageOne m1) { this.m1 = m1; }