(client) feat:实现血条显示,实现攻击交互,添加碰撞体;fix:修复部分朝向贴图加载失败的问题;chore:规范工作类和行为获取类命名

This commit is contained in:
m0_75251201
2025-08-13 22:53:57 +08:00
parent 9922f06990
commit 35924f3695
37 changed files with 1006 additions and 183 deletions

View File

@ -0,0 +1,18 @@
using UnityEngine;
namespace Prefab
{
public class ProgressBarPrefab:MonoBehaviour
{
public GameObject _progress;
public float Progress
{
get => _progress.transform.localScale.x;
set
{
var x=Mathf.Clamp01(value);
_progress.transform.localScale = new Vector3(x, _progress.transform.localScale.y, _progress.transform.localScale.z);
}
}
}
}