private void Start()
    {
        factory = GetComponent <FactoryMethod>().getFactory();

        GameObject capacity = factory.makeCapacityBuilding();
        GameObject building = factory.makeUnitBuilding();

        capacity.GetComponent <RaceCapacity>().expand();
        building.GetComponent <UnitBuilding>().produce();
    }
Exemplo n.º 2
0
    public void makeUnit()
    {
        building = factory.makeUnitBuilding();

        building.produce();
    }