Merge branch 'main' of https://git.sparkus.cn/yangzhao/cb
This commit is contained in:
commit
634de5cc35
|
@ -15018,7 +15018,7 @@
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 1080,
|
"width": 1180,
|
||||||
"height": 2340
|
"height": 2340
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
|
@ -15098,8 +15098,8 @@
|
||||||
"alignMode": 1,
|
"alignMode": 1,
|
||||||
"_target": null,
|
"_target": null,
|
||||||
"_alignFlags": 45,
|
"_alignFlags": 45,
|
||||||
"_left": 0,
|
"_left": -50,
|
||||||
"_right": 0,
|
"_right": -50,
|
||||||
"_top": -210,
|
"_top": -210,
|
||||||
"_bottom": -210,
|
"_bottom": -210,
|
||||||
"_verticalCenter": 0,
|
"_verticalCenter": 0,
|
||||||
|
@ -15288,8 +15288,8 @@
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
2,
|
1,
|
||||||
2,
|
1,
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -155,6 +155,13 @@ export default class NewClass extends cc.Component {
|
||||||
}
|
}
|
||||||
init() {
|
init() {
|
||||||
this.btn_Touch = true;
|
this.btn_Touch = true;
|
||||||
|
const jiazaiNode = cc.find("Canvas"); // 假设 JiaZai 挂在 Canvas 节点
|
||||||
|
const jiazaiComp = jiazaiNode.getComponent(JiaZai);
|
||||||
|
if (jiazaiComp) {
|
||||||
|
setTimeout(() => {
|
||||||
|
jiazaiComp.getMonthlyCardValidityDays();
|
||||||
|
}, 300);
|
||||||
|
}
|
||||||
Utils.getMonthlyCard((data) => {
|
Utils.getMonthlyCard((data) => {
|
||||||
if (data.msg == "不在有效期") {
|
if (data.msg == "不在有效期") {
|
||||||
this.monthCardBtn.active = true;
|
this.monthCardBtn.active = true;
|
||||||
|
@ -175,7 +182,7 @@ export default class NewClass extends cc.Component {
|
||||||
// let rewardData = [
|
// let rewardData = [
|
||||||
// { type: "coin", count: 6000 },
|
// { type: "coin", count: 6000 },
|
||||||
// ]
|
// ]
|
||||||
cc.fx.GameTool.shopBuy(id, false);
|
cc.fx.GameTool.shopBuy(id, false);
|
||||||
cc.fx.GameConfig.GM_INFO.hp_Max = 7;
|
cc.fx.GameConfig.GM_INFO.hp_Max = 7;
|
||||||
cc.fx.GameConfig.GM_INFO.hp = 7;
|
cc.fx.GameConfig.GM_INFO.hp = 7;
|
||||||
// cc.fx.GameTool.changeCoin(6000);
|
// cc.fx.GameTool.changeCoin(6000);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user