From 1cb37040d27d238a960666266003cb5f002ebc12 Mon Sep 17 00:00:00 2001 From: "DESKTOP-KFV16CV\\cyt" <2268162076@qq.com> Date: Wed, 13 Jan 2021 13:39:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E6=8E=89=E7=AE=A1=E7=BA=BF=E5=90=8E?= =?UTF-8?q?=E8=BD=A6=E8=BE=86=E4=B8=8D=E8=83=BD=E7=A7=BB=E5=8A=A8=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Power/Task/TruckMessages.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Scripts/Power/Task/TruckMessages.cs b/Assets/Scripts/Power/Task/TruckMessages.cs index 99433b2..6ae687b 100644 --- a/Assets/Scripts/Power/Task/TruckMessages.cs +++ b/Assets/Scripts/Power/Task/TruckMessages.cs @@ -119,6 +119,10 @@ public class TruckMessages : MonoBehaviour GetComponent().pathFindEnable = false; else { + if (GetComponent().waterLineInfos.Contains(data.waterLineID)) + { + GetComponent().waterLineInfos.Remove(data.waterLineID); + } if (GetComponent().waterLineInfos.Count <= 0) GetComponent().pathFindEnable = true; }