async scenetransition

This commit is contained in:
yhh
2020-06-30 21:42:51 +08:00
parent db7aac2b90
commit 099aa749e1
3 changed files with 7 additions and 8 deletions

View File

@@ -37,8 +37,8 @@ abstract class SceneTransition {
}
public onBeginTransition() {
this.loadNextScene();
public async onBeginTransition() {
await this.loadNextScene();
this.transitionComplete();
}