Esempio n. 1
0
        static void Main(string[] args)
        {
            Paladin   pal   = new Paladin();
            IMoveable adapt = new MoveAdapter(pal);

            adapt.Move(4, 5);

            Peasant   worker = new Peasant();
            GoldMiner miner  = new GoldMiner(worker);

            miner.MineGold();

            Map unitsMap = new Map {
                Title = "Unitsmap"
            };

            unitsMap.AddComponent(pal);
            unitsMap.AddComponent(worker);
            Map anothermap = new Map {
                Title = "Another map"
            };
            Footman ff = new Footman();

            anothermap.AddComponent(ff);
            anothermap.AddComponent(unitsMap);
            anothermap.Draw();
        }
Esempio n. 2
0
 private void Awake()
 {
     eisenMiner = FindObjectOfType<EisenMiner>();
     diamondMiner = FindObjectOfType<DiamondMiner>();
     goldMiner = FindObjectOfType<GoldMiner>();
     miner = FindObjectOfType<Miner>();
     mapManager = FindObjectOfType<MapManager>();
     
 }
Esempio n. 3
0
 void Awake()
 {
     goldMiner      = FindObjectOfType <GoldMiner>();
     goldSeller     = FindObjectOfType <GoldSeller>();
     miner          = FindObjectOfType <Miner>();
     steinSeller    = FindObjectOfType <SteinSeller>();
     doubleSeller   = FindObjectOfType <DoubleSeller>();
     seller         = FindObjectOfType <Seller>();
     solarZellen    = FindObjectOfType <SolarZellen>();
     windGenerator  = FindObjectOfType <WindGenerator>();
     kohleGenerator = FindObjectOfType <KohleGenerator>();
     // money = GameObject.Find("Canvas/Money").GetComponent<Text>();
     //Energie = GameObject.Find("Canvas/Energy").GetComponent<Text>();
 }
Esempio n. 4
0
 void Awake()
 {
     goldSeller     = FindObjectOfType <GoldSeller>();
     steinSeller    = FindObjectOfType <SteinSeller>();
     doubleSeller   = FindObjectOfType <DoubleSeller>();
     kohleGenerator = FindObjectOfType <KohleGenerator>();
     windGenerator  = FindObjectOfType <WindGenerator>();
     diamondMiner   = FindObjectOfType <DiamondMiner>();
     eisenMiner     = FindObjectOfType <EisenMiner>();
     goldMiner      = FindObjectOfType <GoldMiner>();
     miner          = FindObjectOfType <Miner>();
     solarZellen    = FindObjectOfType <SolarZellen>();
     mapManager     = FindObjectOfType <MapManager>();
     map            = FindObjectOfType <Tilemap>();
     dataFromTiles  = new Dictionary <TileBase, TileData>();
 }
Esempio n. 5
0
 void Awake()
 {
     map            = FindObjectOfType <Tilemap>();
     goldSeller     = FindObjectOfType <GoldSeller>();
     steinSeller    = FindObjectOfType <SteinSeller>();
     ressourcen     = FindObjectOfType <Ressourcen>();
     doubleSeller   = FindObjectOfType <DoubleSeller>();
     kohleGenerator = FindObjectOfType <KohleGenerator>();
     windGenerator  = FindObjectOfType <WindGenerator>();
     diamondMiner   = FindObjectOfType <DiamondMiner>();
     goldMiner      = FindObjectOfType <GoldMiner>();
     seller         = FindObjectOfType <Seller>();
     miner          = FindObjectOfType <Miner>();
     solarZellen    = FindObjectOfType <SolarZellen>();
     mapManager     = FindObjectOfType <MapManager>();
     dataFromTiles  = new Dictionary <TileBase, TileData>();
     StartCoroutine(SteinCounter());
 }
Esempio n. 6
0
 void Awake()
 {
     mapGenerator   = FindObjectOfType <mapGenerator>();
     windGenerator  = FindObjectOfType <WindGenerator>();
     mapManager     = FindObjectOfType <MapManager>();
     clintConnects  = FindObjectOfType <Clintconnects>();
     solarZellen    = FindObjectOfType <SolarZellen>();
     kohleGenerator = FindObjectOfType <KohleGenerator>();
     steinSeller    = FindObjectOfType <SteinSeller>();
     seller         = FindObjectOfType <Seller>();
     miner          = FindObjectOfType <Miner>();
     goldSeller     = FindObjectOfType <GoldSeller>();
     goldMiner      = FindObjectOfType <GoldMiner>();
     eisenMiner     = FindObjectOfType <EisenMiner>();
     doubleSeller   = FindObjectOfType <DoubleSeller>();
     diamondMiner   = FindObjectOfType <DiamondMiner>();
     map            = FindObjectOfType <Tilemap>();
     Alive          = true;
     if (isLocalPlayer)
     {
         test();
     }
     StartCoroutine(Waitforplayer());
 }