This commit is contained in:
2024-07-19 17:13:38 +08:00
parent d850652796
commit 883261dac6

View File

@@ -4,7 +4,6 @@ import MapData from "./map/base/MapData";
import { MapLoadModel } from "./map/base/MapLoadModel";
import EntityLayer from "./map/layer/EntityLayer";
import MapLayer from "./map/layer/MapLayer";
import RoadNode from "./map/road/RoadNode";
const { ccclass, property } = _decorator;
@@ -35,7 +34,6 @@ export class MapViewScene extends Component {
/** 2D转3D位置比例值 */
ratio: Vec2 = new Vec2();
private _roadDic: { [key: string]: RoadNode } = {};
@@ -53,8 +51,7 @@ export class MapViewScene extends Component {
private reset() {
this.floorLayer!.removeAllChildren(); // 清除地面显示对象
this.entityLayer!.clear(); // 清除游戏实体对象
this.mapLayer!.clear(); // 清除地图瓦片显示对象
this._roadDic = {};
this.mapLayer!.clear();
}