Exemplo n.º 1
0
    void FinishPothole()
    {
        this.status = PotholeStatus.Done;
        OnPotholeDestruction?.Invoke();

        potholeManager.FinishPothole(this, this.assignedWorkers);
    }
Exemplo n.º 2
0
    public void StartSolvePothole(int workerCount)
    {
        this.status          = PotholeStatus.InProgress;
        this.assignedWorkers = workerCount;

        potholeManager.StartRepairPothole(this, workerCount);
        sliderController = GetComponentInChildren <SliderController>();
    }