(client) feat:UI更新 chore:LogUI性能更好,并且修复反复打开Log消失的bug,删除部分非预期的警告

This commit is contained in:
m0_75251201
2025-08-30 00:26:27 +08:00
parent 34abe845b1
commit 7252698764
58 changed files with 4849 additions and 508 deletions

View File

@ -195,6 +195,8 @@ namespace Entity
protected virtual void InitWeaponAnimator()
{
if (!weaponAnimator)
return;
for (var i = 0; i < weaponAnimator.transform.childCount; i++)
{
Destroy(weaponAnimator.transform.GetChild(i).gameObject);
@ -527,8 +529,6 @@ namespace Entity
// 暂时设定为:如果没有武器,则不进行攻击
if (currentWeapon == null)
{
// 可以在这里添加一个默认的徒手攻击逻辑,或者播放一个“不能攻击”的提示
Debug.Log($"{name} 没有装备武器,无法攻击。");
return;
}