Ejemplo n.º 1
0
 public void Unit3()
 {
     if (BotFactoryT1 == true)
     {
         foreach (GameObject go in Factory)
         {
             UnitSpawner us = go.GetComponent <UnitSpawner>();
             us.unit     = bots[0];
             us.prodTime = 5.0f;
             //Factory.GetComponent<UnitSpawner>().unitRequestAmount = 1;
             us.UnitRequest(bots[2]);
         }
     }
     if (TankFactoryT1 == true)
     {
         foreach (GameObject go in Factory)
         {
             UnitSpawner us = go.GetComponent <UnitSpawner>();
             us.unit     = tanks[0];
             us.prodTime = 25f;
             //Factory.GetComponent<UnitSpawner>().unitRequestAmount = 1;
             us.UnitRequest(tanks[2]);
         }
     }
 }