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.
44 lines
1.2 KiB
44 lines
1.2 KiB
8 months ago
|
using UnityEngine;
|
||
|
using UnityEngine.EventSystems;
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
public class SafeguardItemController : MonoBehaviour, IPointerClickHandler
|
||
|
{
|
||
|
public Text DWMCText;
|
||
|
public Text DWDZText;
|
||
|
public Text FRText;
|
||
|
public Text DHText;
|
||
|
public Text JSRYText;
|
||
|
public Text YSCLText;
|
||
|
public Text BZText;
|
||
|
public Text BZPText;
|
||
|
public Text BZNLText;
|
||
|
public Text KCLText;
|
||
|
|
||
|
public void OnPointerClick(PointerEventData eventData)
|
||
|
{
|
||
|
|
||
|
if (eventData.clickCount >= 2)
|
||
|
{
|
||
|
UIManager.Instance.Show<SafeguardConfigPanel>(SetInfo);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void SetInfo()
|
||
|
{
|
||
|
var panel = UIManager.Instance.GetView<SafeguardConfigPanel>();
|
||
|
panel.Item = gameObject;
|
||
|
panel.DWMCInput.text = DWMCText.text;
|
||
|
panel.DWDZInput.text = DWDZText.text;
|
||
|
panel.FRInput.text = FRText.text;
|
||
|
panel.DHInput.text = DHText.text;
|
||
|
panel.JSRYInput.text = JSRYText.text;
|
||
|
panel.YSCLInput.text = YSCLText.text;
|
||
|
panel.BZInput.text = BZText.text;
|
||
|
panel.BZPInput.text = BZPText.text;
|
||
|
panel.BZNLInput.text = BZNLText.text;
|
||
|
panel.KCLInput.text = KCLText.text;
|
||
|
}
|
||
|
}
|