Ejemplo n.º 1
0
 private void Awake()
 {
     eisenMiner = FindObjectOfType<EisenMiner>();
     diamondMiner = FindObjectOfType<DiamondMiner>();
     goldMiner = FindObjectOfType<GoldMiner>();
     miner = FindObjectOfType<Miner>();
     mapManager = FindObjectOfType<MapManager>();
     
 }
Ejemplo n.º 2
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>();
 }
Ejemplo n.º 3
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>();
     einsenMiner    = FindObjectOfType <EisenMiner>();
     seller         = FindObjectOfType <Seller>();
     miner          = FindObjectOfType <Miner>();
     solarZellen    = FindObjectOfType <SolarZellen>();
     mapManager     = FindObjectOfType <MapManager>();
     dataFromTiles  = new Dictionary <TileBase, TileData>();
     StartCoroutine(SteinCounter());
 }
Ejemplo n.º 4
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());
 }