UI系统优化
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user