瀏覽代碼

fixed bug

woso_javan 4 月之前
父節點
當前提交
51d1fe82d9
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      assets/module_movecar/Script/Systems/UnitColorsSysterm.ts

+ 5 - 0
assets/module_movecar/Script/Systems/UnitColorsSysterm.ts

@@ -42,6 +42,11 @@ export class UnitColorsSysterm extends Component {
                 continue
             }
 
+            if (points[i].name === "inuse" && points[i].children.length === 2) {
+                cars.push(points[i].children[1])
+                continue
+            }
+
             if (points[i].name === "empty") {
                 isEmpty = true
                 continue