MyBook/Assets/Scripts/AIquestionAnswerImage.cs

28 lines
581 B
C#
Raw Normal View History

2025-03-17 17:27:32 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class AIquestionAnswerImage : MonoBehaviour
{
public Button btnReturn;
// Start is called before the first frame update
void Start()
{
btnReturn.onClick.AddListener(OnBbtnEndClick);
}
// Update is called once per frame
void Update()
{
}
private void OnBbtnEndClick()
{
GameManager.Instance.ImgMask.SetActive(false);
this.gameObject.SetActive(false);
}
}