|
|
|
@ -119,6 +119,10 @@ public class TruckMessages : MonoBehaviour
|
|
|
|
|
GetComponent<AgentController>().pathFindEnable = false; |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
if (GetComponent<WaterSupplier>().waterLineInfos.Contains(data.waterLineID)) |
|
|
|
|
{ |
|
|
|
|
GetComponent<WaterSupplier>().waterLineInfos.Remove(data.waterLineID); |
|
|
|
|
} |
|
|
|
|
if (GetComponent<WaterSupplier>().waterLineInfos.Count <= 0) |
|
|
|
|
GetComponent<AgentController>().pathFindEnable = true; |
|
|
|
|
} |
|
|
|
|