上海虹口龙之梦项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
910 B

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<LinkageFoceConfigPanel>(SetInfo);
}
}
private void SetInfo()
{
var panel = UIManager.Instance.GetView<LinkageFoceConfigPanel>();
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;
}
}