|
@@ -393,7 +393,7 @@ export class InitCheckpointSystem extends ecs.ComblockSystem implements ecs.IEnt
|
|
|
const availablePositions = Array.from({ length: count }, (_, i) => i)
|
|
const availablePositions = Array.from({ length: count }, (_, i) => i)
|
|
|
checkpoint_model.vehicles = Array(count).fill(null)
|
|
checkpoint_model.vehicles = Array(count).fill(null)
|
|
|
const start_point = v3(-5, 0, 0)
|
|
const start_point = v3(-5, 0, 0)
|
|
|
- pcolor.forEach((v,i)=>{
|
|
|
|
|
|
|
+ pcolor?.forEach((v,i)=>{
|
|
|
const color = colors[pcolor[i] - 1]
|
|
const color = colors[pcolor[i] - 1]
|
|
|
if (copyColorCount[color] > 0) {
|
|
if (copyColorCount[color] > 0) {
|
|
|
const vehicle = ecs.getEntity<Vehicle>(Vehicle);
|
|
const vehicle = ecs.getEntity<Vehicle>(Vehicle);
|