Commit f1e74158 authored by unknown's avatar unknown

准备多加舒尔特古诗

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