Justice Guard
This commit is contained in:
parent
12589a7452
commit
a16f5bb56e
3 changed files with 46 additions and 4 deletions
|
|
@ -21,9 +21,11 @@ export default class PlayScene extends Phaser.Scene {
|
|||
|
||||
if (window.myStuff.token) {
|
||||
const response = await API.record(pts, shts, time)
|
||||
rank = response.rank
|
||||
|
||||
await window.updateTopList()
|
||||
if (response.rank) {
|
||||
rank = response.rank
|
||||
await window.updateTopList()
|
||||
}
|
||||
}
|
||||
|
||||
this.add.image(250, 550, 'phaser-logo').setScale(0.5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue