MyBook/Assets/script/BlackboardOne.cs

28 lines
580 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.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);
2025-03-18 15:04:56 +08:00
GameManager.Instance.showVideoPlayer("d544ee389b313a457470fab9b220f981.mp4");
2025-03-17 17:27:32 +08:00
this.gameObject.SetActive(false);
}
}