Add notes handling to TaskButtonManager for UDP commands

This commit is contained in:
tom.hempel
2025-11-06 13:18:12 +01:00
parent fb002a6096
commit e99159a368
2 changed files with 61 additions and 7 deletions

View File

@ -0,0 +1,23 @@
using UnityEngine;
using TMPro;
public class NotesDisplay : MonoBehaviour
{
[Header("Notes UI")]
[Tooltip("TextMeshProUGUI field where received notes will be displayed")]
public TextMeshProUGUI notesText;
public void SetNotes(string text)
{
if (notesText != null)
{
notesText.text = text;
}
else
{
Debug.LogWarning("NotesDisplay: notesText is not assigned in the inspector.");
}
}
}