|
@@ -41,7 +41,7 @@ export class PlayerMgr {
|
|
return new Promise(async (resolve, reject) => {
|
|
return new Promise(async (resolve, reject) => {
|
|
const mapConfig = MapMgr.Instance.getMapConfig(1);
|
|
const mapConfig = MapMgr.Instance.getMapConfig(1);
|
|
this.createAIPlayerCount = mapConfig.count;
|
|
this.createAIPlayerCount = mapConfig.count;
|
|
- // this.createAIPlayerCount = 1;//测试
|
|
|
|
|
|
+ // this.createAIPlayerCount = 0;//测试
|
|
const aiPoints = StormSunderGlobalInstance.instance.aiPoints;
|
|
const aiPoints = StormSunderGlobalInstance.instance.aiPoints;
|
|
for (let i = 0; i < this.createAIPlayerCount; i++) {
|
|
for (let i = 0; i < this.createAIPlayerCount; i++) {
|
|
const infoPrefab = await resLoader.loadAsync(resLoader.gameBundleName, res[0], Prefab);
|
|
const infoPrefab = await resLoader.loadAsync(resLoader.gameBundleName, res[0], Prefab);
|
|
@@ -54,6 +54,7 @@ export class PlayerMgr {
|
|
infoNode.addComponent(TornadoAIComponent);
|
|
infoNode.addComponent(TornadoAIComponent);
|
|
resolve();
|
|
resolve();
|
|
}
|
|
}
|
|
|
|
+ // resolve();
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|