This commit is contained in:
guoqing.zhu 2022-06-15 16:39:32 +08:00
parent bfdc4f0212
commit 80d538ee33
3 changed files with 34083 additions and 56 deletions

File diff suppressed because it is too large Load Diff

View File

@ -183,17 +183,28 @@ cc.Class({
default: null,
type: cc.Node,
},
btn_shop: {
default: null,
type: cc.Node,
},
btn_acdemy: {
default: null,
type: cc.Node,
},
},
onLoad() {
cc.audioEngine.stopAll();
// NetManage.getOptionSwitch((res) => {
// console.log('get switch' + JSON.stringify(res));
// if (res.open_list.includes(1)) {
// this.btn_task.active = true;
// }
// });
NetManage.getOptionSwitch((res) => {
console.log('get switch' + JSON.stringify(res));
if (res.open_list.includes(2)) {
this.btn_acdemy.active = true;
this.btn_shop.active = true;
}
});
},
start() {
//test

File diff suppressed because one or more lines are too long