Commit c0b1cecc authored by jeff's avatar jeff

更新显示

parent e1080a3d
...@@ -15,6 +15,7 @@ cc.Class({ ...@@ -15,6 +15,7 @@ cc.Class({
this._totoalTime = null this._totoalTime = null
this._nowTime = null this._nowTime = null
this._pause = false this._pause = false
this.node.active = false
}, },
onEnable() { onEnable() {
cc.systemEvent.on('stopBgMusic', this.onEvent, this) cc.systemEvent.on('stopBgMusic', this.onEvent, this)
...@@ -47,6 +48,7 @@ cc.Class({ ...@@ -47,6 +48,7 @@ cc.Class({
this.tiao.children[0].getComponent(cc.Sprite).fillRange = 0 this.tiao.children[0].getComponent(cc.Sprite).fillRange = 0
this.tiao.children[1].x = 12 this.tiao.children[1].x = 12
this.onAudioFinish() this.onAudioFinish()
this.node.active = true
}) })
}, },
......
...@@ -2521,7 +2521,7 @@ ...@@ -2521,7 +2521,7 @@
"y": 0 "y": 0
}, },
"_fillStart": 0, "_fillStart": 0,
"_fillRange": 1, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "22ejznEcFGuYZA5G0//V6z" "_id": "22ejznEcFGuYZA5G0//V6z"
......
...@@ -294,7 +294,6 @@ cc.Class({ ...@@ -294,7 +294,6 @@ cc.Class({
let url = data.bgItem.bgAudioUrl let url = data.bgItem.bgAudioUrl
if (url && url != '') { if (url && url != '') {
this.bgAudioNode.active = true
this.bgAudioNode.getComponent('audioItem').init(url) this.bgAudioNode.getComponent('audioItem').init(url)
} else { } else {
this.bgAudioNode.active = false this.bgAudioNode.active = false
......
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