예제 #1
0
        //6 The client should call a production method of a Director object to begin the construction process.
        public void ClientCode(Director director, Builder builder)
        {
            Debug.Log("Standart basic product:");
            director.buildMinimalViableProduct();
            Debug.Log(builder.GetProduct().ListParts());

            Debug.Log("Standart full featured product:");
            director.buildFullFeaturedProduct();
            Debug.Log(builder.GetProduct().ListParts());

            Debug.Log("Custom product:");
            builder.BuildPartA();
            builder.BuildPartC();
            Debug.Log(builder.GetProduct().ListParts());
        }
예제 #2
0
 public void buildFullFeaturedProduct()
 {
     builder.BuildPartA();
     builder.BuildPartB();
     builder.BuildPartC();
 }