fix: AI改写按钮位置优化 + 返回首页清除故事状态

This commit is contained in:
2026-03-09 18:01:41 +08:00
parent bbdccfa843
commit c960f9fa79
2 changed files with 18 additions and 13 deletions

View File

@@ -645,6 +645,9 @@ export default class EndingScene extends BaseScene {
// 返回首页
if (this.isInRect(x, y, padding + buttonWidth + buttonMargin, row3Y, buttonWidth, buttonHeight)) {
// 清除当前故事状态
this.main.storyManager.currentStory = null;
this.main.storyManager.currentNodeKey = 'start';
this.main.sceneManager.switchScene('home');
return;
}