Commit 9f365599 authored by rockyl's avatar rockyl

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

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