示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        FactoryIPhone8 factoryIPhone8 = new FactoryIPhone8();

        factoryIPhone8.CreateIPhone();
        FactoryIPhoneX factoryIPhoneX = new FactoryIPhoneX();

        factoryIPhoneX.CreateIPhone();
    }
示例#2
0
    // Start is called before the first frame update
    void Start()
    {
        FactoryIPhone8 factoryIPhone8 = new FactoryIPhone8();

        factoryIPhone8.ProduceIPhone();
        factoryIPhone8.ProduceIPhoneCharger();
        FactoryIPhoneX factoryIPhoneX = new FactoryIPhoneX();

        factoryIPhoneX.ProduceIPhone();
        factoryIPhoneX.ProduceIPhoneCharger();
    }