EchoTrio
 
Loading...
Searching...
No Matches
FeedbackLogger.cs
Go to the documentation of this file.
1using UnityEngine;
2using TMPro;
3using UnityEngine.InputSystem;
4
5namespace EchoTrio.Log {
6 public class FeedbackLogger : MonoBehaviour {
7 [Header("References")]
8 public TextMeshProUGUI conversationText;
9
10 void Update() {
11 if (conversationText == null) {
12 return;
13 }
14
15 if (Keyboard.current.upArrowKey.wasPressedThisFrame) {
16 conversationText.text += " [LIKED]";
17 }
18
19 if (Keyboard.current.downArrowKey.wasPressedThisFrame) {
20 conversationText.text += " [DISLIKED]";
21 }
22 }
23 }
24}
TextMeshProUGUI conversationText