private void Start() { factory = GetComponent <FactoryMethod>().getFactory(); GameObject capacity = factory.makeCapacityBuilding(); GameObject building = factory.makeUnitBuilding(); capacity.GetComponent <RaceCapacity>().expand(); building.GetComponent <UnitBuilding>().produce(); }
public void makeUnit() { building = factory.makeUnitBuilding(); building.produce(); }