using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class LinkageForceItemController : MonoBehaviour,IPointerClickHandler { public Text BMText; public Text MCText; public Text DZText; public Text DHText; public Text LLText; public Text RWText; public void OnPointerClick(PointerEventData eventData) { if (eventData.clickCount >= 2) { UIManager.Instance.Show(SetInfo); } } private void SetInfo() { var panel = UIManager.Instance.GetView(); panel.Item = gameObject; panel.BMInput.text = BMText.text; panel.MCInput.text = MCText.text; panel.DZInput.text = DZText.text; panel.DHInput.text = DHText.text; panel.LLInput.text = LLText.text; panel.RWInput.text = RWText.text; } }