新增AI-GOAP目标导向计划与ASTAR寻路配合使用

This commit is contained in:
yhh
2020-10-29 11:22:01 +08:00
parent 85cc4b4ecc
commit 1a78dada61
17 changed files with 3045 additions and 19 deletions

View File

@@ -11,17 +11,17 @@ module samples {
this.camera.entity.addComponent(new es.FollowCamera(moonEntity));
this.entities.frameAllocate = true;
this.entities.maxAllocate = 10;
for (let i = 0; i < 10000; i ++){
this.createEntity("");
}
// this.entities.frameAllocate = true;
// this.entities.maxAllocate = 10;
// for (let i = 0; i < 10000; i ++){
// this.createEntity("");
// }
});
}
public update(){
super.update();
console.log(this.entities.buffer.length);
// console.log(this.entities.buffer.length);
}
}
}