Beispiel #1
0
        public Hud(ContentManager content, Director.Director director, Scene.Scene scene)
        {
            this.director = director;
            this.scene    = scene;

            hudElements = new List <HudElement>();
            defaultFont = content.Load <SpriteFont>(MainConfig.PIPELINE_FONTS_DIRECTORY + "default");
            fonts       = new List <SpriteFont>();
            fonts.Add(defaultFont);
            //TODO get from config
            fonts.Add(content.Load <SpriteFont>(MainConfig.PIPELINE_FONTS_DIRECTORY + "dimbo"));
            fonts.Add(content.Load <SpriteFont>(MainConfig.PIPELINE_FONTS_DIRECTORY + "ventura"));
        }
        public OrderBuilder WithTestValues()
        {
            _order.TotalAmount = 100m;
            var addressBuilder  = new AddressBuilder();
            var customerBuilder = new CustomerBuilder();

            var addressDirector  = new Director.Director(addressBuilder);
            var customerDirector = new Director.Director(customerBuilder);

            customerDirector.MakeCustomer();
            addressDirector.MakeAddress();


            _order.Customer             = customerBuilder.GetProduct();
            _order.Customer.HomeAddress = addressBuilder.GetProduct();

            return(this);
        }
Beispiel #3
0
        //--------------------------我是分割线--------------------
        //以下为monobehaviour

        void Start()
        {
            nowStatus = Status.sshore;
            Director.Director director = Director.Director.getInstance();
            director.setScene(this);
        }
 private void button2_Click(object sender, EventArgs e)
 {
     Director.Director director = new Director.Director();
     director.Show();
 }