_xiaofang/xiaofang/Assets/Res/gsj/scripts/Understaffed.cs
2024-12-20 10:10:19 +08:00

25 lines
561 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Understaffed : MonoBehaviour
{
private Button closeBtn;
// Start is called before the first frame update
void Start()
{
closeBtn = transform.Find("bg/topbg/closeBtn").GetComponent<Button>();
closeBtn.onClick.AddListener(OnClickCloseBtn);
}
// Update is called once per frame
void Update()
{
}
void OnClickCloseBtn()
{
Game.uiManager.CloseUI("Schedule_host03");
}
}