刘向辉 3 years ago
parent
commit
0c7aa9015d
  1. 5
      src/app/babylon/view/building-window/building-window.ts

5
src/app/babylon/view/building-window/building-window.ts

@ -210,13 +210,12 @@ export class BuildingWindow extends UIBase {
this.buldingStatus = StatusManager.getStatus<BuildingStatus>(BuildingStatus);
this.initBuildings();//创建每一个建筑buildingItem
BuildingWindow.instance = this;
this.three = PlanComponent.instance;
// this.three.getAllBuilding(this);
this.three.buildingUIItems = this.buildingUIItems
this.buildingUIItems.length? this.three.beforeOneBuildingID = this.three.buildingUIItems[0].getBuildingID() : null
}

Loading…
Cancel
Save