该项目的目的是同时测试和演示来自 Unity DOTS 技术堆栈的多个新包。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

20 行
478 B

using System;
using UnityEngine;
public class CharacterHealthUI : MonoBehaviour
{
public void UpdateUI(ref HealthStateData healthState)
{
if (m_Health != healthState.health)
{
m_Health = healthState.health;
m_HealthText.text = (Mathf.CeilToInt(m_Health)).ToString();
}
}
#pragma warning disable 649
[SerializeField] TMPro.TMP_Text m_HealthText;
#pragma warning restore 649
float m_Health = -1;
}