|
@@ -58,9 +58,14 @@ public class GameAssistUI : MonoBehaviour
|
|
|
});
|
|
});
|
|
|
Button btnIdentity = this.transform.Find("Button4").GetComponent<Button>();
|
|
Button btnIdentity = this.transform.Find("Button4").GetComponent<Button>();
|
|
|
btnIdentity.onClick.AddListener(delegate(){
|
|
btnIdentity.onClick.AddListener(delegate(){
|
|
|
|
|
+ if (btnIdentity.GetComponent<LongPressMonitor>().isLongPress) return;
|
|
|
AudioMgr.ins.PlayBtn();
|
|
AudioMgr.ins.PlayBtn();
|
|
|
AutoResetView.DoIdentity();
|
|
AutoResetView.DoIdentity();
|
|
|
});
|
|
});
|
|
|
|
|
+ btnIdentity.gameObject.AddComponent<LongPressMonitor>().onLongPress += () => {
|
|
|
|
|
+ AudioMgr.ins.PlayBtn();
|
|
|
|
|
+ if (SB_EventSystem.ins) SB_EventSystem.ins.AwakenSimulateMouse();
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
// ------ 查看靶子 ------
|
|
// ------ 查看靶子 ------
|
|
|
Transform targetView = this.transform.Find("TargetView");
|
|
Transform targetView = this.transform.Find("TargetView");
|