private IEnumerator BuildingProcess(BuildingController building) //процесс постройки здания { while (building.Percentage < 100) { building.ApplyBuildingProgress(BuildingSpeed); yield return(new WaitForSecondsRealtime(1f)); } }
private IEnumerator BuildingProcess(BuildingController building) //процесс постройки здания { while (building.Percentage < 100) { building.ApplyBuildingProgress(BuildingSpeed); yield return(new WaitForSecondsRealtime(1f)); } }