Exemple #1
0
    void SolvePothole()
    {
        if (this.status == PotholeStatus.InProgress)
        {
            progress += ((assignedWorkers + 1.0f) / 2.0f) * Time.deltaTime;
            sliderController.SetProgressTime(progress);

            if (progress >= repairTime)
            {
                FinishPothole();
            }
        }
    }