Commit f1e74158 authored by unknown's avatar unknown

准备多加舒尔特古诗

parent 523c3b98
...@@ -101,12 +101,22 @@ export class ClassifyCtr_1 extends Component { ...@@ -101,12 +101,22 @@ export class ClassifyCtr_1 extends Component {
private bestScore: number = 0; private bestScore: number = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
setGameData(resData: object){ setGameData(resData: object) {
//@ts-ignore //@ts-ignore
if(resData.totalTime){ if (resData.totalTime) {
//@ts-ignore //@ts-ignore
this.totalTime = resData.totalTime; this.totalTime = resData.totalTime;
} }
//@ts-ignore
if (resData.succScore) {
//@ts-ignore
this.succScore = resData.succScore;
}
//@ts-ignore
if (resData.oneScore) {
//@ts-ignore
this.oneScore = resData.oneScore;
}
} }
start() { start() {
......
...@@ -93,12 +93,22 @@ export class ClassifyCtr extends Component { ...@@ -93,12 +93,22 @@ export class ClassifyCtr extends Component {
private bestScore = 0; private bestScore = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
setGameData(resData: object){ setGameData(resData: object) {
//@ts-ignore //@ts-ignore
if(resData.totalTime){ if (resData.totalTime) {
//@ts-ignore //@ts-ignore
this.totalTime = resData.totalTime; this.totalTime = resData.totalTime;
} }
//@ts-ignore
if (resData.succScore) {
//@ts-ignore
this.succScore = resData.succScore;
}
//@ts-ignore
if (resData.oneScore) {
//@ts-ignore
this.oneScore = resData.oneScore;
}
} }
start() { start() {
......
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 414.4124472573839, "_orthoHeight": 418.6192468619247,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
......
...@@ -156,12 +156,22 @@ export class UniqueCtr_1 extends Component { ...@@ -156,12 +156,22 @@ export class UniqueCtr_1 extends Component {
private bestScore: number = 0; private bestScore: number = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
setGameData(resData: object){ setGameData(resData: object) {
//@ts-ignore //@ts-ignore
if(resData.totalTime){ if (resData.totalTime) {
//@ts-ignore //@ts-ignore
this.totalTime = resData.totalTime; this.totalTime = resData.totalTime;
} }
//@ts-ignore
if (resData.succScore) {
//@ts-ignore
this.succScore = resData.succScore;
}
//@ts-ignore
if (resData.oneScore) {
//@ts-ignore
this.oneScore = resData.oneScore;
}
} }
start() { start() {
......
...@@ -157,12 +157,22 @@ export class UniqueCtr_2 extends Component { ...@@ -157,12 +157,22 @@ export class UniqueCtr_2 extends Component {
private bestScore: number = 0; private bestScore: number = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
setGameData(resData: object){ setGameData(resData: object) {
//@ts-ignore //@ts-ignore
if(resData.totalTime){ if (resData.totalTime) {
//@ts-ignore //@ts-ignore
this.totalTime = resData.totalTime; this.totalTime = resData.totalTime;
} }
//@ts-ignore
if (resData.succScore) {
//@ts-ignore
this.succScore = resData.succScore;
}
//@ts-ignore
if (resData.oneScore) {
//@ts-ignore
this.oneScore = resData.oneScore;
}
} }
start() { start() {
......
...@@ -317,7 +317,7 @@ ...@@ -317,7 +317,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 375, "_orthoHeight": 418.6192468619247,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
......
...@@ -160,12 +160,22 @@ export class UniqueCtr extends Component { ...@@ -160,12 +160,22 @@ export class UniqueCtr extends Component {
private bestScore: number = 0; private bestScore: number = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
setGameData(resData: object){ setGameData(resData: object) {
//@ts-ignore //@ts-ignore
if(resData.totalTime){ if (resData.totalTime) {
//@ts-ignore //@ts-ignore
this.totalTime = resData.totalTime; this.totalTime = resData.totalTime;
} }
//@ts-ignore
if (resData.succScore) {
//@ts-ignore
this.succScore = resData.succScore;
}
//@ts-ignore
if (resData.oneScore) {
//@ts-ignore
this.oneScore = resData.oneScore;
}
} }
start() { start() {
...@@ -231,7 +241,7 @@ export class UniqueCtr extends Component { ...@@ -231,7 +241,7 @@ export class UniqueCtr extends Component {
// [3] // [3]
} }
onDestroy(){ onDestroy() {
director.off("click_item"); director.off("click_item");
director.off("continue_game"); director.off("continue_game");
director.off("begin_countdown_end"); director.off("begin_countdown_end");
......
This diff is collapsed.
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