using DefaultNamespace.ProcessMode; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; using static InterfaceManager; /// /// 地磅 /// public class WeighBridgeCheck : MonoBehaviour { public static WeighBridgeCheck instance; /// /// 称重提示 /// public GameObject weightips; /// /// 打印提示 /// public GameObject printtips; /// /// 是否检查了地磅 /// public bool isCheckWeigh; /// /// 是否检查地磅显示屏 /// public bool isdisplay; /// /// 重量显示 /// public TextMeshProUGUI weightext; /// /// 称重次数 /// int index = 0; /// /// 称重 /// public Button weighbt; /// /// 打印 /// public Button printbt; private void Awake() { instance = this; } void Start() { weighbt.onClick.AddListener(() => { weightips.SetActive(false); printtips.SetActive(true); CarMoverToWeigh.Instance.CarMove(); MotionFramework.MotionEngine.GetModule().HandleClick("true"); }); printbt.onClick.AddListener(() => { printtips.SetActive(false); if (!CarMoverToWeigh.Instance.IsUnload) { LoadTriggerNextGuide(printbt.name); } UI_Tips.instance.ShowPanel("打印完成!"); MotionFramework.MotionEngine.GetModule().HandleClick("true"); }); } void Update() { } }