UI系统优化

This commit is contained in:
2026-05-25 11:54:37 +08:00
parent c7057db27d
commit 3c812cfb41
130 changed files with 4738 additions and 477 deletions

View File

@@ -73,6 +73,9 @@ namespace BaseGames.Dialogue
private void Update()
{
// 完全隐藏且不需要淡出时,跳过所有计算
if (!_visible && _alpha <= 0f) return;
// 位置偏移(世界空间气泡)
if (_offset != Vector3.zero)
transform.position = (_npc != null ? _npc.transform.position : transform.parent.position) + _offset;