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

fix: sbg

parent 53368db2
...@@ -45,8 +45,8 @@ cc.Class({ ...@@ -45,8 +45,8 @@ cc.Class({
}, },
onTouchStart() { onTouchStart() {
if (g.data_mgr.nodPlayer) { if (g_ps05.data_mgr.nodPlayer) {
g.data_mgr.nodPlayer.onStopAudio(); g_ps05.data_mgr.nodPlayer.onStopAudio();
} }
if (this._playing) return if (this._playing) return
if (this.audioId) return if (this.audioId) return
...@@ -54,7 +54,7 @@ cc.Class({ ...@@ -54,7 +54,7 @@ cc.Class({
if (!this._isComplent) { if (!this._isComplent) {
this.db.node.active = true; this.db.node.active = true;
this.playCatDragon(); this.playCatDragon();
g.game.inst.onBtnCheck(); g_ps05.game.inst.onBtnCheck();
//已经完成 //已经完成
this._isComplent = true; this._isComplent = true;
} }
...@@ -71,7 +71,7 @@ cc.Class({ ...@@ -71,7 +71,7 @@ cc.Class({
if (!this._playing) { if (!this._playing) {
this._playing = true; this._playing = true;
g.data_mgr.nodPlayer = this; g_ps05.data_mgr.nodPlayer = this;
cc.systemEvent.once('stopMusic', this.onStopAudio, this) cc.systemEvent.once('stopMusic', this.onStopAudio, this)
// if (onlyOne != this) { // if (onlyOne != this) {
// this._playing = false // this._playing = false
...@@ -128,7 +128,7 @@ cc.Class({ ...@@ -128,7 +128,7 @@ cc.Class({
this.stopAudio() this.stopAudio()
}, },
stopAudio() { stopAudio() {
g.data_mgr.nodPlayer = null; g_ps05.data_mgr.nodPlayer = null;
this._playing = false this._playing = false
if (this.audioId != null) { if (this.audioId != null) {
cc.audioEngine.stop(this.audioId) cc.audioEngine.stop(this.audioId)
......
...@@ -13,7 +13,7 @@ var picNode = cc.Class({ ...@@ -13,7 +13,7 @@ var picNode = cc.Class({
ctor: function () { ctor: function () {
picNode.inst = this; picNode.inst = this;
g.picNode = picNode; g_ps05.picNode = picNode;
}, },
onEnable() { onEnable() {
...@@ -24,10 +24,10 @@ var picNode = cc.Class({ ...@@ -24,10 +24,10 @@ var picNode = cc.Class({
}, },
onTouchStart() { onTouchStart() {
if (g.data_mgr.nodPlayer) { if (g_ps05.data_mgr.nodPlayer) {
g.data_mgr.nodPlayer.onStopAudio(); 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) { 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