Commit dafbde31 authored by Lwd's avatar Lwd

aaaa

parent 171afeaa
...@@ -75,6 +75,8 @@ var game = cc.Class({ ...@@ -75,6 +75,8 @@ var game = cc.Class({
UpdataUi: function () { UpdataUi: function () {
//显示标题 //显示标题
this.title.string = g.data_mgr.data.contentObj.title; this.title.string = g.data_mgr.data.contentObj.title;
//设置上下页按钮状态
this.setButtonState();
//获得上列表的数据 //获得上列表的数据
var topList = g.data_mgr.getImgInfo(1); var topList = g.data_mgr.getImgInfo(1);
var botList = g.data_mgr.getImgInfo(2); var botList = g.data_mgr.getImgInfo(2);
...@@ -91,8 +93,6 @@ var game = cc.Class({ ...@@ -91,8 +93,6 @@ var game = cc.Class({
//游戏开始 //游戏开始
gameStart: function () { gameStart: function () {
//设置上下页按钮状态
this.setButtonState();
console.log("游戏开始:" + g.data_mgr); console.log("游戏开始:" + g.data_mgr);
//播放一个上面的音乐 //播放一个上面的音乐
this.setAudioInfo(1); this.setAudioInfo(1);
......
...@@ -119,14 +119,9 @@ g.data_mgr = { ...@@ -119,14 +119,9 @@ g.data_mgr = {
g.speaker.inst.play_start(() => { g.speaker.inst.play_start(() => {
g.game.inst.playAudioTitle(() => { g.game.inst.playAudioTitle(() => {
g.game.inst.mask_node.active = false; g.game.inst.mask_node.active = false;
//游戏开始
g.game.inst.gameStart();
}); });
}); });
//游戏开始
g.game.inst.gameStart();
//初始化音频
// this.initAudio();
// this.initListener();
}, },
} }
\ No newline at end of file
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