fix: PingClickHandler删除重建—清除括号混乱
This commit is contained in:
@@ -47,7 +47,6 @@ public class PingClickHandler : MonoBehaviour
|
||||
|
||||
void OnMouseDown()
|
||||
{
|
||||
// touchArray 优先
|
||||
foreach (var c in Object.FindObjectsOfType<Camera>())
|
||||
{
|
||||
if (!c.enabled) continue;
|
||||
@@ -57,7 +56,6 @@ public class PingClickHandler : MonoBehaviour
|
||||
|
||||
if (!_modelShown)
|
||||
{
|
||||
// 首次点击: 显示模型,隐藏边框,激活下一个 ping
|
||||
_modelShown = true;
|
||||
StopAllCoroutines();
|
||||
if (_modelRenderer != null) _modelRenderer.enabled = true;
|
||||
@@ -70,7 +68,6 @@ public class PingClickHandler : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
// 模型已显示: 点击显示 chanrao
|
||||
if (chanraoObject != null) { chanraoObject.SetActive(true); Debug.Log($"[PingClick] {name} → {chanraoObject.name}"); }
|
||||
gameObject.SetActive(false);
|
||||
var sm = FindObjectOfType<StepManager>();
|
||||
@@ -79,6 +76,6 @@ public class PingClickHandler : MonoBehaviour
|
||||
}
|
||||
|
||||
public void ReEnableBorder() { if (_outlineMesh != null) { _outlineMesh.enabled = true; StopAllCoroutines(); StartCoroutine(BlinkOutline()); } }
|
||||
}
|
||||
public void UndoSecondClick() {}
|
||||
public void UndoShow() { gameObject.SetActive(false); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user