Ejemplo n.º 1
0
 public override void PlaceOnMap(Map map, Cell[,] cells)
 {
     base.PlaceOnMap(map, cells);
     infoText      = new AnimatedText(map.CalcWorldToScreen(Cells[0, 0].Position) - new Vector2(10, 100), 1.5f, Color.Red);
     infoText.Text = "-" + cost.Amount + " " + cost.GetName();
     infoText.Play();
 }
Ejemplo n.º 2
0
        public override void PlaceOnMap(Map map, Cell[,] cells)
        {
            base.PlaceOnMap(map, cells);
            production = new ProductionHandler(Item.ItemType.Holz, 5f, 1f);
            production.ItemProduced += new ProductionHandler.Product(ItemProduced);
            production.Start();

            infoText = new AnimatedText(map.CalcWorldToScreen(Cells[0, 0].Position) - new Vector2(10, 100), 1.5f, Color.Yellow);
        }