MyBook/Assets/Scripts/Shop.cs
2025-03-17 17:38:32 +08:00

25 lines
743 B
C#

using UnityEngine.UI;
using UnityEngine;
public class Shop : MonoBehaviour
{
public Button btnReturn;
// Start is called before the first frame update
void Start()
{
btnReturn.onClick.AddListener(OnBbtnEndClick);
}
// Update is called once per frame
private void OnBbtnEndClick()
{
GameManager.Instance.infoTGo.text = GameManager.Instance.infoShow.ParseClickableText("你好啊,我是你的助手小知\r\n你想了解什么呢?\r\n高亮的部分可以点击哦!\r\n快来跟我一起学习吧\r\n\n\n[我想进入下一阶段的学习]");
GameManager.Instance.showVideoPlayer("d544ee389b313a457470fab9b220f981.mp4");
GameManager.Instance.ImgMask.SetActive(false);
this.gameObject.SetActive(false);
}
}