63 lines
1.8 KiB
C#
63 lines
1.8 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using DefaultNamespace;
|
|
using Framework.Manager;
|
|
using MotionFramework;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class DeliveryListManager : MonoBehaviour
|
|
{
|
|
public Button listButton;
|
|
public GameObject listPanel;
|
|
public Button closeButton;
|
|
public GameObject wancheng;
|
|
|
|
public GameObject renwu;
|
|
|
|
void Start()
|
|
{
|
|
listButton.onClick.AddListener(OnClickListButton);
|
|
closeButton.onClick.AddListener(OnClickCloseButton);
|
|
if (MotionEngine.GetModule<GlobalDataStorage>().ExamName == "违约索赔")
|
|
{
|
|
listButton.gameObject.SetActive(true);
|
|
}
|
|
else if (MotionEngine.GetModule<GlobalDataStorage>().ExamName == "不良行为处理")
|
|
{
|
|
listButton.gameObject.SetActive(true);
|
|
}
|
|
else if (MotionEngine.GetModule<GlobalDataStorage>().ExamName == "完成出厂验收的系统上报操作")
|
|
{
|
|
listButton.gameObject.SetActive(true);
|
|
}
|
|
|
|
|
|
// if (MotionEngine.GetModule<GlobalDataStorage>().ExamName == "物资配送履约跟踪表维护")
|
|
// {
|
|
// renwu.SetActive(true);
|
|
// }
|
|
|
|
}
|
|
|
|
private void OnClickListButton()
|
|
{
|
|
if (MotionEngine.GetModule<GlobalDataStorage>().ExamName == "完成出厂验收的系统上报操作")
|
|
{
|
|
wancheng.gameObject.SetActive(true);
|
|
}
|
|
//listPanel.SetActive(true);
|
|
// TutorialGuideManager.Instance.TriggerNextGuide(listButton.name);
|
|
}
|
|
|
|
private void OnClickCloseButton()
|
|
{
|
|
// if (Delivery_BadBehavior.Instance.isGuiding)
|
|
// {
|
|
// if (TutorialGuideManager.Instance.TriggerNextGuide(closeButton.name))
|
|
// {
|
|
// listPanel.SetActive(false);
|
|
// }
|
|
// }
|
|
}
|
|
} |