feat(Read): 将阅读修改为R键,并添加阅读提示
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user