feat(Read): 将阅读修改为R键,并添加阅读提示

This commit is contained in:
2025-10-24 16:45:02 +08:00
parent 72921fe173
commit b873bd251f
6 changed files with 5404 additions and 5054 deletions

View File

@@ -9,6 +9,7 @@ namespace UI
public class PlayerGazeReminder : UIBase
{
[SerializeField] private GameObject reminderInteractPrefab;
[SerializeField] private GameObject reminderReadPrefab;
[SerializeField] private GameObject reminderConnectPrefab;
[SerializeField] private GameObject reminderSetPointPrefab;
[SerializeField] private GameObject reminderDeleteLinePrefab;
@@ -51,8 +52,8 @@ namespace UI
private void OnGetDialogueController(PlayerDialogueController controller)
{
playerDialogueController = controller;
playerDialogueController.OnGazeEnterDialogue += (obj) => reminderInteractPrefab.SetActive(true);
playerDialogueController.OnGazeExitDialogue += (obj) => reminderInteractPrefab.SetActive(false);
playerDialogueController.OnGazeEnterDialogue += (obj) => reminderReadPrefab.SetActive(true);
playerDialogueController.OnGazeExitDialogue += (obj) => reminderReadPrefab.SetActive(false);
}
}
}