public void ShowStatsHouse(IBuildingHouse building) { m_currentBuilding = building; buildingName.text = building.GetName(); buildingDesc.text = building.GetDesc(); productiveBuildingContent.SetActive(false); houseBuildingContent.SetActive(true); M_ScreenManager.SChangeScreenPersistentBack(s_instance.gameObject); }
private void ActionOnBuildingFinished(IBuilding building) { if (building is IBuildingHouse) { IBuildingHouse house = ((IBuildingHouse)building); int count = house.GetProvidedSettlers(); for (int i = 0; i < count; i++) { house.AssignSettler(M_SettlersManager.SCreateSettler(house.GetId())); } } }