feat: 梦境门、热力图、身体模块与终端 UI 全流程逻辑

Made-with: Cursor
This commit is contained in:
2026-03-28 19:37:52 +08:00
parent 215725d2a0
commit fc03cfdd4a
5 changed files with 86 additions and 20 deletions
@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using AibisDream;
using DG.Tweening;
using Shapes;
using TMPro;
@@ -761,8 +762,7 @@ namespace AibisDream.UI
}
else if (c == '\n' || c == '\r')
{
if (_inputBuffer.Length > 0)
EnterConfirmPhase();
EnterConfirmPhase();
return;
}
else if (!char.IsControl(c) && _inputBuffer.Length < maxInputLength)
@@ -784,7 +784,7 @@ namespace AibisDream.UI
private void HandleConfirmInput()
{
if (Input.GetKeyDown(KeyCode.Y))
if (Input.GetKeyDown(KeyCode.Y) || Input.GetKeyDown(KeyCode.Return) || Input.GetKeyDown(KeyCode.KeypadEnter))
{
CommitPendingInputToHistory(includeConfirmPrompt: true);
_phase = TerminalPhase.EndAnimation;
@@ -812,6 +812,7 @@ namespace AibisDream.UI
yield return PlayCrashEnding();
_phase = TerminalPhase.Done;
DreamDoorSystem.Instance?.HideAll();
yield return new WaitForSeconds(1f);
DialogController.Instance.StartDialogNode(onCompleteNode);
}