|
@@ -1,4 +1,4 @@
|
|
|
-import { assetManager, instantiate, Prefab, Node, UITransform, Vec3, Vec2, view, game, PhysicsSystem, geometry } from "cc";
|
|
|
+import { assetManager, instantiate, Prefab, Node, UITransform, Vec3, Vec2, view, game, PhysicsSystem, geometry, director } from "cc";
|
|
|
import { ResLoader, resLoader } from "db://assets/core_tgx/base/ResLoader";
|
|
|
import { StormSunderGlobalInstance } from "../StormSunderGlobalInstance";
|
|
|
import { TornadoComponent } from "../Component/TornadoComponent";
|
|
@@ -6,6 +6,7 @@ import { TornadoAIComponent } from "../Component/TornadoAIComponent";
|
|
|
import { AttributeBonusMgr } from "./AttributeBonusMgr";
|
|
|
import { Tableai_config } from "db://assets/module_basic/table/Tableai_config";
|
|
|
import { MapMgr } from "./MapMgr";
|
|
|
+import { EasyControllerEvent } from "db://assets/core_tgx/easy_controller/EasyController";
|
|
|
|
|
|
const res = [
|
|
|
"Prefabs/Storm",
|
|
@@ -252,8 +253,12 @@ export class PlayerMgr {
|
|
|
return ""; // 若无有效名称,返回空字符串
|
|
|
}
|
|
|
|
|
|
- reset() {
|
|
|
+ async reset() {
|
|
|
this.destroyOtherAI();
|
|
|
+ let tornado = await this.getTornadoNode();
|
|
|
+ tornado.scale = new Vec3(1, 1, 1);
|
|
|
+ const sence = director.getScene();
|
|
|
+ sence.emit(EasyControllerEvent.CAMERA_ZOOM, 30);
|
|
|
this.aiIndex = 0;
|
|
|
}
|
|
|
|