woso_javan il y a 4 mois
Parent
commit
51d1fe82d9
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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