Commit 3456ca0c authored by 范雪寒's avatar 范雪寒

fix: sbg

parent 53368db2
......@@ -45,8 +45,8 @@ cc.Class({
},
onTouchStart() {
if (g.data_mgr.nodPlayer) {
g.data_mgr.nodPlayer.onStopAudio();
if (g_ps05.data_mgr.nodPlayer) {
g_ps05.data_mgr.nodPlayer.onStopAudio();
}
if (this._playing) return
if (this.audioId) return
......@@ -54,7 +54,7 @@ cc.Class({
if (!this._isComplent) {
this.db.node.active = true;
this.playCatDragon();
g.game.inst.onBtnCheck();
g_ps05.game.inst.onBtnCheck();
//已经完成
this._isComplent = true;
}
......@@ -71,7 +71,7 @@ cc.Class({
if (!this._playing) {
this._playing = true;
g.data_mgr.nodPlayer = this;
g_ps05.data_mgr.nodPlayer = this;
cc.systemEvent.once('stopMusic', this.onStopAudio, this)
// if (onlyOne != this) {
// this._playing = false
......@@ -128,7 +128,7 @@ cc.Class({
this.stopAudio()
},
stopAudio() {
g.data_mgr.nodPlayer = null;
g_ps05.data_mgr.nodPlayer = null;
this._playing = false
if (this.audioId != null) {
cc.audioEngine.stop(this.audioId)
......
......@@ -13,7 +13,7 @@ var picNode = cc.Class({
ctor: function () {
picNode.inst = this;
g.picNode = picNode;
g_ps05.picNode = picNode;
},
onEnable() {
......@@ -24,10 +24,10 @@ var picNode = cc.Class({
},
onTouchStart() {
if (g.data_mgr.nodPlayer) {
g.data_mgr.nodPlayer.onStopAudio();
if (g_ps05.data_mgr.nodPlayer) {
g_ps05.data_mgr.nodPlayer.onStopAudio();
}
g.speaker.inst.playEffect(g.enum.E_Audio.Error);
g_ps05.speaker.inst.playEffect(g_ps05.enum.E_Audio.Error);
},
onShow(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment