fix: replace isBlinking logic with proper isFinished state to fix Ping first-click advancing

This commit is contained in:
yangbear
2026-07-09 03:51:55 +08:00
parent 14b03b5859
commit a9d97d4b17
4 changed files with 28 additions and 14 deletions
@@ -6,6 +6,7 @@ public class ShoseClickHandler : MonoBehaviour
public Transform targetPoint;
private MeshRenderer _outlineMesh;
private bool _clicked;
private float _lastClickTime;
public bool CanBeClicked() { return !_clicked; }
@@ -76,6 +77,8 @@ public class ShoseClickHandler : MonoBehaviour
public void PerformClick()
{
if (Time.time - _lastClickTime < 0.3f) return;
_lastClickTime = Time.time;
if (_clicked) return;
_clicked = true;
Debug.Log("[ShoseClick] ★ 被点击 ★");