1.更换load背景
2.修改引导给道具UI数量 3.修改分享点击状态
This commit is contained in:
parent
85f336acca
commit
6af51f34e7
Binary file not shown.
|
Before Width: | Height: | Size: 243 KiB After Width: | Height: | Size: 274 KiB |
|
|
@ -2559,7 +2559,7 @@ export default class MapConroler extends cc.Component {
|
|||
// this.iceLabel.string = cc.fx.GameConfig.GM_INFO.freezeAmount.toString();
|
||||
// MiniGameSdk.API.showToast("购买冻结时间成功");
|
||||
let data = [
|
||||
{ type: "freeze", count: 3 },
|
||||
{ type: "freeze", count: 1 },
|
||||
]
|
||||
MapConroler._instance.SceneManager.openRewardWindow(data, () => {
|
||||
console.log("_________恢复游戏");
|
||||
|
|
@ -2585,7 +2585,7 @@ export default class MapConroler extends cc.Component {
|
|||
this.setPropNum();
|
||||
// this.magicLabel.string = cc.fx.GameConfig.GM_INFO.magicAmount.toString();
|
||||
let data = [
|
||||
{ type: "magic", count: 3 },
|
||||
{ type: "magic", count: 1 },
|
||||
]
|
||||
MapConroler._instance.SceneManager.openRewardWindow(data, () => {
|
||||
console.log("_________恢复游戏");
|
||||
|
|
|
|||
|
|
@ -361,10 +361,11 @@ export default class SceneManager extends cc.Component {
|
|||
|
||||
|
||||
clickBtn() {
|
||||
console.log("点击按钮得锤子")
|
||||
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
|
||||
let propWindow = this.node.getChildByName("Game").getChildByName("propWindow").getChildByName("prop");
|
||||
if (propWindow.getChildByName("share_Btn").getComponent("btnControl")._touch) {
|
||||
propWindow.getChildByName("share_Btn").getComponent("btnControl").setTouch(false);
|
||||
// propWindow.getChildByName("share_Btn").getComponent("btnControl").setTouch(false);
|
||||
if (this.btnName == "freeze")
|
||||
MapConroler._instance.buyFreeze();
|
||||
else if (this.btnName == "hammer")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user