Commit 9f365599 authored by rockyl's avatar rockyl

修复pk没有更新积分的问题

parent ed599fd7
......@@ -2978,11 +2978,9 @@
"script": "components/base/Transform",
"properties": {
"position": {
"_hashCode": 101993,
"_x": 0,
"_y": 0,
"x": 155,
"y": 30
"y": 25,
"_type_": "scilla/support/Vector2D"
}
}
},
......@@ -3318,7 +3316,7 @@
"properties": {
"position": {
"x": -170,
"y": -155,
"y": -165,
"_type_": "scilla/support/Vector2D"
}
}
......
......@@ -8,6 +8,7 @@ import {Entity, utils,} from "scilla";
import DialogContent from "../popup/DialogContent";
import AnimLayer from "./pkresult/AnimLayer";
import ResultLayer from "./pkresult/ResultLayer";
import globalEvent from "globalEvent";
export default class PKResult extends DialogContent {
AnimLayer: Entity;
......@@ -35,7 +36,9 @@ export default class PKResult extends DialogContent {
await this._animLayer.play(data);
await utils.waitPromise(500);
this.ResultLayer.enabled = true;
this._resultLayer.play(data);
await this._resultLayer.play(data);
globalEvent.emit('runCredits');
}
onBottomButtonTap(action){
......
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