void SolvePothole() { if (this.status == PotholeStatus.InProgress) { progress += ((assignedWorkers + 1.0f) / 2.0f) * Time.deltaTime; sliderController.SetProgressTime(progress); if (progress >= repairTime) { FinishPothole(); } } }
void SolvePothole() { if (this.status == PotholeStatus.InProgress) { progress += ((assignedWorkers + 1.0f) / 2.0f) * Time.deltaTime; sliderController.SetProgressTime(progress); if (progress >= repairTime) { FinishPothole(); } } }