Added PlayerMovement and other

This commit is contained in:
2026-06-20 16:32:20 +03:00
parent f5c79c7241
commit eca9be620a
25 changed files with 3630 additions and 2200 deletions
@@ -0,0 +1,15 @@
using UnityEngine;
using TMPro;
using UnityEngine.UI;
public class PlayerHealthView : MonoBehaviour
{
[SerializeField] private TMP_Text healthText;
[SerializeField] private Image healthBar;
public void UpdateHealth(int _currentHealth, int _maxHealth)
{
healthText.text = $"{_currentHealth}/{_maxHealth}";
healthBar.fillAmount = (float)_currentHealth / _maxHealth;
}
}