using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using JC.Unity.UI; using JC.Unity; public class MouseConfirm : MonoBehaviour { Selectable _targetSelectable; Selectable _selfSelectable; void Update() { if (!SB_EventSystem.ins.simulateMouseIsAwaked) { Hide(); return; } if (!_targetSelectable) { Hide(); } } void Show() { if (!gameObject.activeSelf) gameObject.SetActive(true); } void Hide() { ResumeTarget(); _targetSelectable = null; if (gameObject.activeSelf) gameObject.SetActive(false); } public void OnClikc_Confirm() { try { if (_targetSelectable && _targetSelectable.interactable) { Button btn = _targetSelectable.GetComponent