Tz2/Assets/Scripts/TransferMaterialsOutWarehou...

42 lines
1.2 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
using DefaultNamespace.ProcessMode;
using Framework.Manager;
using MotionFramework;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// 物资调拨出库
/// </summary>
public class TransferMaterialsOutWarehouseComponent : MonoBehaviour
{
public Button queryBt;
public Button shengchengzhuanchudan;
public InputField cangkuhao;
public Toggle baohanzidonghuarenwu;
public GameObject plane1;
public void Start()
{
queryBt.onClick.AddListener(delegate
{
if (MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string>()
{
cangkuhao.text,
baohanzidonghuarenwu.isOn.ToString()
}))
{
plane1.SetActive(true);
TutorialGuideManager.Instance.TriggerNextGuide(queryBt.name);
}
});
shengchengzhuanchudan.onClick.AddListener(delegate
{
if (MotionEngine.GetModule<ProcessManager>().HandleClick("生成转储单"))
TutorialGuideManager.Instance.TriggerNextGuide(shengchengzhuanchudan.name);
});
}
}