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