73 lines
1.8 KiB
C#
73 lines
1.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using DefaultNamespace.ProcessMode;
|
|
using Framework.Manager;
|
|
using MotionFramework;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
/// <summary>
|
|
/// 完成箱式开闭所借用物资领料出库系统操作
|
|
/// </summary>
|
|
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<string> list = new List<string>();
|
|
list.Add(jieliao.text);
|
|
list.Add(faliao.isOn.ToString());
|
|
|
|
|
|
if (MotionEngine.GetModule<ProcessManager>().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<string> list = new List<string>();
|
|
list.Add(xuanze.isOn.ToString());
|
|
list.Add(yuliu.text);
|
|
list.Add(yuliuhang.text);
|
|
|
|
if (MotionEngine.GetModule<ProcessManager>().HandleClick(list))
|
|
{
|
|
plane3.SetActive(true);
|
|
TutorialGuideManager.Instance.TriggerNextGuide();
|
|
}
|
|
});
|
|
}
|
|
} |