EchoTrio
Loading...
Searching...
No Matches
FeedbackLogger.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
using
TMPro;
3
using
UnityEngine.InputSystem;
4
5
namespace
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
}
EchoTrio.Log.FeedbackLogger
Definition:
FeedbackLogger.cs:6
EchoTrio.Log.FeedbackLogger.Update
void Update()
Definition:
FeedbackLogger.cs:10
EchoTrio.Log.FeedbackLogger.conversationText
TextMeshProUGUI conversationText
Definition:
FeedbackLogger.cs:8
EchoTrio.Log
Definition:
ConversationLogger.cs:5
Assets
Scripts
Log
FeedbackLogger.cs
Generated by
1.9.6