using System; using System.Collections; using System.Collections.Generic; using DefaultNamespace.ProcessMode; using Framework.Manager; using MotionFramework; using TMPro; using UnityEngine; using UnityEngine.UI; /// /// 完成箱式开闭所借用物资领料出库系统操作 /// public class BorrowMaterialRequestManager : MonoBehaviour { public InputField jieliao; public Toggle faliao; public Toggle xuanze; public TMP_InputField yuliu; public TMP_InputField yuliuhang; public Button chaxun; public Button faliaoBt; public GameObject plane1; public GameObject plane2; public GameObject plane3; private void Start() { chaxun.onClick.AddListener(delegate { List list = new List(); list.Add(jieliao.text); list.Add(faliao.isOn.ToString()); if (MotionEngine.GetModule().HandleClick(list)) { plane1.SetActive(false); plane2.SetActive(true); TutorialGuideManager.Instance.TriggerNextGuide(); } }); faliaoBt.onClick.AddListener(delegate { if(!xuanze.isOn) return; if(yuliu.text=="") return; if (yuliuhang.text == "") return; List list = new List(); list.Add(xuanze.isOn.ToString()); list.Add(yuliu.text); list.Add(yuliuhang.text); if (MotionEngine.GetModule().HandleClick(list)) { plane3.SetActive(true); TutorialGuideManager.Instance.TriggerNextGuide(); } }); } }