fix: prevent repeated clicks breaking undo stack and properly hide chanrao on undo

This commit is contained in:
yangbear
2026-07-09 03:41:50 +08:00
parent 3826a8b3bb
commit 14b03b5859
3 changed files with 4 additions and 0 deletions
@@ -58,6 +58,7 @@ public class TouchPositionHandler : MonoBehaviour
private void OnMouseDown()
{
if (_meshRenderer == null || !_meshRenderer.enabled) return; // 防止重复点击
Debug.Log($"[TouchPosition] {name}: 被点击");
if (womanObject != null && targetPosition != null)