dd
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user