Browse Source

fixed bug

woso_javan 4 months ago
parent
commit
51d1fe82d9
1 changed files with 5 additions and 0 deletions
  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