fix: replace isBlinking logic with proper isFinished state to fix Ping first-click advancing
This commit is contained in:
@@ -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] ★ 被点击 ★");
|
||||
|
||||
Reference in New Issue
Block a user