Tz2/Assets/Scripts/ListManager.cs

29 lines
710 B
C#

using System.Collections;
using System.Collections.Generic;
using Framework.Manager;
using UnityEngine;
using UnityEngine.UI;
public class ListManager : MonoBehaviour
{
public Button listBt;
public GameObject qingdan;
public Button btn_close_供应商不良行为清单;
private void Start()
{
listBt.onClick.AddListener(OnListButtonClicked);
btn_close_供应商不良行为清单.onClick.AddListener(OnCloseButtonClicked);
}
private void OnCloseButtonClicked()
{
qingdan.SetActive(false);
}
private void OnListButtonClicked()
{
qingdan.SetActive(true);
TutorialGuideManager.Instance.TriggerNextGuide(listBt.name);
}
}