MyBook/Assets/script/BlackboardOne.cs
2025-03-17 17:28:01 +08:00

27 lines
494 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class BlackboardOne : MonoBehaviour
{
public Button btnReturn;
void Start()
{
btnReturn.onClick.AddListener(OnBtnReturnClick);
}
// Update is called once per frame
void Update()
{
}
private void OnBtnReturnClick()
{
GameManager.Instance.ImgMask.SetActive(false);
this.gameObject.SetActive(false);
}
}