| 12345678910111213141516171819202122232425262728293031323334353637 |
- import FireEventObserver from '../framework/FireEventObserver';
- import SubHallManger from '../view/subHallManger'
- cc.Class({
- extends: SubHallManger,
- properties: {
- gamesNode:cc.Node,
- subgamesNode:cc.Node,
- },
- onLoad()
- {
- var subcp= [['1' , []],
- ['2' , [19,20,32]],
- ['3' , [5,6,11,14,17,22,27,29]],
- ['4' , [2,8,12,16,18]],
- ['5' , [3,10,13,25,26,28,30,31]],
- ['7' , [1,7,23,24]],
- ['9' , [4,9,15,21]]]
- this.myMap = new Map(subcp);
- console.log(this.myMap.keys());
- },
-
- ClickGamesBtn(sender,customEventData)
- {
- var showingHall = this.subgamesNode.getComponent('CaiPiaosubHallController')
- var needgames = this.myMap.get(customEventData)
- showingHall.plane = this.subgamesNode.getChildByName("nameplane"+customEventData)
- showingHall.showNeedGames(needgames)
- showingHall.parentScene = this
- this.playEnd(showingHall)
- },
- });
|