update
This commit is contained in:
parent
bfdc4f0212
commit
80d538ee33
File diff suppressed because it is too large
Load Diff
@ -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
Loading…
x
Reference in New Issue
Block a user