fix: AI改写按钮位置优化 + 返回首页清除故事状态
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user