using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class DeviceObj : MonoBehaviour { public DeviceList BindData; public DeviceType BindType; void Start() { } private void OnMouseDown() { if (EventSystem.current.IsPointerOverGameObject()) { return; } DevicePanelManager.Instance.ShowBindList(BindType, this); } public void ShowList() { DevicePanelManager.Instance.ShowBindList(BindType, this); } }