fix: suppress videoEnd during QTE, clear QTE UI on game end and chapter restart

This commit is contained in:
2026-06-09 14:55:13 +08:00
parent 660fa9347c
commit 0a6d26ecb0
3 changed files with 11 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ export class Engine {
)
this.videoManager.onEnd(() => {
if (!this.qteResolved) {
if (!this.qteTriggered || this.qteResolved) {
this.emit('videoEnd', scene)
this.onVideoEnd(scene)
}