using DefaultNamespace.ProcessMode; using System.Collections; using System.Collections.Generic; using System.Linq; using DefaultNamespace; using Framework.Manager; using MotionFramework; using TMPro; using UnityEngine; using UnityEngine.UI; using static InterfaceManager; /// /// 物资控制中心 /// public class MaterialCenter : MonoBehaviour { /// /// 单例 /// public static MaterialCenter Instance; /// /// 物资检查 /// public GameObject panelMaterialInspection; /// /// 物资检查按钮 /// public Button btnMaterialInspection; /// /// 物资配套资料 /// public Toggle[] toggles; /// /// 应收物资数量输入框 /// public TMP_InputField inputQuantityReceivableMaterials; /// /// 应收物资单位显示 /// public TextMeshProUGUI TextInputQuantityReceivableMaterials; /// /// 应收物资数量爆保存按钮 /// public Button btnQuantityReceivableMaterials; /// /// 物资检查附件按钮 /// public Button btnCheckAttachments; /// /// 物资卡片 /// public Button btnMaterialCard; /// /// 物资卡片 /// public MaterialCard PanelMaterialCard; /// /// 悬挂物资卡片 /// public Button btnHangMaterialCard; /// /// 关闭物资检查面板 /// public Button btnClosePanelMaterialInspection; /// /// 地磅检查按钮 /// public Button WeighCheckbt; /// /// 地磅检查完毕保存按钮 /// public Button WeighChecksavebt; /// /// 卸货按钮 /// public Button Unload; /// /// 地磅检查面板 /// public GameObject WeighChecksPanel; /// /// 地磅检查toggle /// public List choosetoggle; public Button btupload; public GameObject plane1; private void Awake() { Instance = this; //在场景中找出隐藏的PanelMaterialInspection的Transform panelMaterialInspection = FindHiddenPanel("PanelMaterialInspection"); btnMaterialInspection = FindObjectByName