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

34 lines
1.0 KiB
C#

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