This commit is contained in:
2025-05-30 18:01:13 +08:00
parent 64ac24ca5e
commit c1c3413639
3 changed files with 15 additions and 9 deletions
@@ -141,12 +141,6 @@ namespace AibisDream.FixSystem
// 系统被锁定就返回
if (!_cableSystem.IsPlugAvailable()) return;
// 如果线缆是收起状态,先放下
if (_cableSystem.isCableRetracted)
{
_cableSystem.DropDownCable();
return;
}
// 首次拖拽后关闭高亮
if (GlobalVariableKit.IsPlugHighLight)
@@ -168,7 +162,7 @@ namespace AibisDream.FixSystem
// 关闭 PhysicCable 的更新,并显示 Cable 的 LineRenderer
_cableSystem.PhysicCableRef.GetComponent<LineRenderer>().enabled = false;
_isPhysicCableActive = false;
_cableSystem.CableRef.GetComponent<LineRenderer>().enabled = true;
_cableSystem.CableRef.ShowCable();
}
private void OnPointerUp(BaseEventData eventData)
@@ -227,7 +221,7 @@ namespace AibisDream.FixSystem
// if (_cableSystem.isCableRetracted) return;
// 隐藏 Cable 的 LineRenderer
_cableSystem.PhysicCableRef.Init(transform.position);
_cableSystem.CableRef.GetComponent<LineRenderer>().enabled = false;
_cableSystem.CableRef.HideCable();
// 激活 PhysicCable
_cableSystem.PhysicCableRef.GetComponent<LineRenderer>().enabled = true;
_isPhysicCableActive = true;