using System;
using System.Collections;
using System.Collections.Generic;
using DefaultNamespace.ProcessMode;
using Framework.Manager;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
///
/// 完成箱式开闭所借用物资领料出库系统操作-申请单
///
public class SwitchgearMaterialRequestSystem : MonoBehaviour
{
public UI_StampConfirmation u1;
public UI_StampConfirmation u2;
public UI_StampConfirmation u3;
public TMP_InputField lingliaodanhaol;
public TMP_InputField kuguanyuan;
public TMP_InputField jieliaoren;
public TMP_InputField chukudanhao;
public GameObject plane1;
public GameObject plane2;
public GameObject gamewindow;
public Button bt;
public Button tianxieBt;
private bool isb = false;
private bool isfirst = true;
private void OnEnable()
{
}
// Start is called before the first frame update
void Start()
{
bt.onClick.AddListener(delegate
{
if (isfirst)
{
isfirst = false;
List inputList = new List();
inputList.Add(u1.IsClick.ToString());
inputList.Add(u2.IsClick.ToString());
inputList.Add(u3.IsClick.ToString());
if (MotionFramework.MotionEngine.GetModule().HandleClick(inputList))
{
plane1.SetActive(true);
tianxieBt.gameObject.SetActive(true);
gamewindow.SetActive(false);
TutorialGuideManager.Instance.TriggerNextGuide();
}
}
else
{
List inputList = new List();
inputList.Add(lingliaodanhaol.text);
inputList.Add(chukudanhao.text);
inputList.Add(kuguanyuan.text);
inputList.Add(jieliaoren.text);
if (MotionFramework.MotionEngine.GetModule().HandleClick(inputList))
{
gamewindow.SetActive(false);
TutorialGuideManager.Instance.TriggerNextGuide();
}
}
});
tianxieBt.onClick.AddListener(delegate
{
tianxieBt.gameObject.SetActive(false);
plane2.SetActive(true);
TutorialGuideManager.Instance.TriggerNextGuide();
});
}
}