17 lines
370 B
C#
17 lines
370 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace Jovian.InGameLogging.UI {
|
|
public class LogEntryView : MonoBehaviour {
|
|
[SerializeField] TMP_Text messageText;
|
|
|
|
public void SetEntry(in LogEntry entry) {
|
|
messageText.text = entry.message;
|
|
}
|
|
|
|
public void ClearEntry() {
|
|
messageText.text = string.Empty;
|
|
}
|
|
}
|
|
}
|