var beiMiCommon = require("BeiMiCommon"); cc.Class({ extends: beiMiCommon, properties: { // foo: { // default: null, // The default value will be used only when the component attaching // to a node for the first time // url: cc.Texture2D, // optional, default is typeof default // serializable: true, // optional, default is true // visible: true, // optional, default is true // displayName: 'Foo', // optional // readonly: false, // optional, default is false // }, // ... first: { default: null, type: cc.Node }, second: { default: null, type: cc.Node }, gamepoint:{ default: null, type: cc.Node }, title:{ default: null, type: cc.Node }, global: { default: null, type: cc.Node }, playway: { default: null, type: cc.Prefab }, content: { default: null, type: cc.Node }, }, // use this for initialization onLoad: function () { if(cc.beimi != null && cc.beimi.user != null){ this.disMenu("first") ; this.playwaypool = new cc.NodePool(); for(var i=0 ; i<20 ; i++){ //最大玩法数量不能超过20种 this.playwaypool.put(cc.instantiate(this.playway)); } this.playwayarray = new Array(); if(this.gamepoint && cc.beimi!=null && cc.beimi.games !=null){ for(var inx=0 ; inx < this.gamepoint.children.length ; inx++){ let name = this.gamepoint.children[inx].name ; var gameenable = false ; for(var i=0 ; i