mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Prepare for the release on gamedistribution
This commit is contained in:
@@ -47,7 +47,7 @@ export class HUDUnlockNotification extends BaseHUDPart {
|
||||
this.btnClose.innerText = "Next level";
|
||||
dialog.appendChild(this.btnClose);
|
||||
|
||||
this.trackClicks(this.btnClose, this.close);
|
||||
this.trackClicks(this.btnClose, this.requestClose);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -119,6 +119,12 @@ export class HUDUnlockNotification extends BaseHUDPart {
|
||||
this.root.soundProxy.playUi(SOUNDS.levelComplete);
|
||||
}
|
||||
|
||||
requestClose() {
|
||||
this.root.app.adProvider.showVideoAd().then(() => {
|
||||
this.close();
|
||||
});
|
||||
}
|
||||
|
||||
close() {
|
||||
this.visible = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user