fix: replace isBlinking logic with proper isFinished state to fix Ping first-click advancing
This commit is contained in:
@@ -10,6 +10,7 @@ public class TouchPositionHandler : MonoBehaviour
|
||||
public GameObject womanObject;
|
||||
public GameObject nextTouchObject;
|
||||
public AudioClip voiceClip;
|
||||
private float _lastClickTime;
|
||||
|
||||
private MeshRenderer _meshRenderer;
|
||||
|
||||
@@ -59,6 +60,9 @@ public class TouchPositionHandler : MonoBehaviour
|
||||
private void OnMouseDown()
|
||||
{
|
||||
if (_meshRenderer == null || !_meshRenderer.enabled) return; // 防止重复点击
|
||||
if (Time.time - _lastClickTime < 0.3f) return;
|
||||
_lastClickTime = Time.time;
|
||||
|
||||
Debug.Log($"[TouchPosition] {name}: 被点击");
|
||||
|
||||
if (womanObject != null && targetPosition != null)
|
||||
|
||||
Reference in New Issue
Block a user