public StartConstructionEvent(BuildingIdentifier buildingIdentifier) { BuildingIdentifier = buildingIdentifier; }
void CreateButton(BuildingIdentifier buildingIdentifier) { BuildButton button = Instantiate(ButtonPrefab.gameObject, ButtonParent).GetComponent <BuildButton>(); button.BuildingType = buildingIdentifier; }
public static PlayerBuildingModel GetBuildingWithIdentifier(BuildingIdentifier identifier) { return(prefabsByIdentifier[identifier]); }