Exemplo n.º 1
0
 public Building(int workers, int customers, int size, Enums.Building.Type buildigType)
 {
     _workersMax   = workers;
     _customersMax = customers;
     _size         = size;
     _buildigType  = buildigType;
 }
    public void Init(BuildingSO buildingSO) {
        this.buildingSO = buildingSO;
        workersMax = buildingSO._workersMax;
        customersMax = buildingSO._customersMax;
        buildingType = buildingSO._buildingType;
        materialToUse = buildingSO._materialToUse;


        GetComponent<MeshRenderer>().material = materialToUse;

        canStart = true;
    }