Commit c0b4c569 authored by zjz1994's avatar zjz1994

代码暂存

parent 08c0f4ad
......@@ -10,7 +10,7 @@ import { getRepeatCount } from "../startScene/StartScene";
export default class MapBottomPart extends ComponentBase {
static LEVEL_NUMS = 3;
getTxt(i): eui.BitmapLabel { return this[`txt${i}`]; }
start({repeatHeight,topHeight}) {
start() {
super.start();
for(var i=0;i<MapBottomPart.LEVEL_NUMS;i++){
......
......@@ -17,7 +17,7 @@ export default class MapRpeatPart extends ComponentBase {
start() {
super.start();
console.log("repeadtMap----------------start");
for(var i=0;i<MapRpeatPart.LEVEL_NUMS;i++){
const star = new MapStarComp();
star.loadSkin(); star.start();
......
......@@ -379,12 +379,19 @@ export default class MapScene extends Scene {
this._data = data;
this.maptoppart = new MapTopPart();
this.maptoppart.loadSkin();
this.maptoppart.start();
this.onemapreppart = new MapRpeatPart();
this.onemapreppart.loadSkin();
this.onemapreppart.start();
this.twomapreppart = new MapRpeatPart();
this.twomapreppart.loadSkin();
this.twomapreppart.start();
this.mapbotpart = new MapBottomPart();
this.mapbotpart.loadSkin();
this.mapbotpart.start();
this.once(egret.Event.ADDED_TO_STAGE,this.initMapScene,this);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment