montzions ui pausenmenü ui lebns ui nachladen pausen menü neues digsein

This commit is contained in:
NBTEMP\bib
2026-07-16 15:09:38 +02:00
parent c320f54ec9
commit 7cc9554e6a
343 changed files with 106043 additions and 50 deletions
+18
View File
@@ -0,0 +1,18 @@
using UnityEngine;
using TMPro; // Erforderlich für TextMeshPro
public class HealthUI : MonoBehaviour
{
[Header("Referenzen")]
public TextMeshProUGUI healthText;
public PlayerHealth playerHealth;
void Update()
{
if (healthText != null && playerHealth != null)
{
// Zeigt z. B. "HP: 100 / 100" an
healthText.text = "HP: " + playerHealth.currentHealth + " / " + playerHealth.maxHealth;
}
}
}