Commit 65896787 authored by yu's avatar yu

1

parent d3849203
...@@ -1951,8 +1951,8 @@ ...@@ -1951,8 +1951,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 85.557,
-7.689, 13.078,
0, 0,
0, 0,
0, 0,
......
...@@ -110,7 +110,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -110,7 +110,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 所有全局变量 默认都是null // 所有全局变量 默认都是null
} }
private audioId: any; private audioId: any;
async initView() { private initView() {
this.catPlayAni(Game.getIns().beginAudio, () => { this.catPlayAni(Game.getIns().beginAudio, () => {
this.startCountTime(); this.startCountTime();
this.gameStart(); this.gameStart();
...@@ -132,9 +132,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -132,9 +132,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
// data.stone = Math.floor(10 * data.right / data.total); // data.stone = Math.floor(10 * data.right / data.total);
// this.log("total: " + data.total + " right: " + data.right + " stone: " + data.stone); // this.log("total: " + data.total + " right: " + data.right + " stone: " + data.stone);
// onHomeworkFinish(data) // onHomeworkFinish(data)
// let leaf_ske = cc.find("leaf_ske", this.node); let leaf_ske = cc.find("leaf_ske", this.node);
// leaf_ske.active = true; leaf_ske.active = true;
// playDragonBoneAnimation(leaf_ske, "normal", 1); playDragonBoneAnimation(leaf_ske, "normal", 1);
cc.audioEngine.stopAllEffects(); cc.audioEngine.stopAllEffects();
this.catPlayAni(Game.getIns().endAudio, () => { this.catPlayAni(Game.getIns().endAudio, () => {
// this.dbCat.active = false; // this.dbCat.active = false;
......
...@@ -156,7 +156,7 @@ export default class Game { ...@@ -156,7 +156,7 @@ export default class Game {
public init(data) { public init(data) {
this.title = data.title; this.title = data.title;
this.start = false; this.start = false;
this.beginAudio = data.guideBegin_audio_url || ""; this.beginAudio = data.beginAudio || "";
this.endAudio = data.endAudio || ""; this.endAudio = data.endAudio || "";
this.loadingAudio = data.startLoadingAudio || ""; this.loadingAudio = data.startLoadingAudio || "";
this.waitAudio = data.waitAudio || ""; this.waitAudio = data.waitAudio || "";
......
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