补充 wx版本
This commit is contained in:
parent
6c88048986
commit
2092fade8e
|
@ -306,6 +306,12 @@ stopHeathTimeCutDown() {
|
|||
this.node.getChildByName("zhuanchang").getComponent(sp.Skeleton).setAnimation(1, "up", false);
|
||||
cc.fx.GameConfig.LEVEL_INFO_init(true, 1000);
|
||||
}
|
||||
else{
|
||||
cc.fx.AudioManager._instance.playEffect("zhuan1", null);
|
||||
this.node.getChildByName("zhuanchang").active = true;
|
||||
this.node.getChildByName("zhuanchang").getComponent(sp.Skeleton).setAnimation(1, "up", false);
|
||||
cc.fx.GameConfig.LEVEL_INFO_init(true, 1000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -960,6 +960,8 @@ var GameTool = {
|
|||
},
|
||||
|
||||
getWechatGameVersion: function(){
|
||||
//@ts-ignore
|
||||
if (typeof wx!== 'undefined' && wx!== null) {
|
||||
//@ts-ignore
|
||||
const accountInfo = wx.getAccountInfoSync();
|
||||
const miniProgram = accountInfo.miniProgram;
|
||||
|
@ -973,6 +975,7 @@ var GameTool = {
|
|||
default:
|
||||
return '未知版本';
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user