NewMyBook/Assets/Scripts/OnePageOne.cs
2025-03-28 16:07:42 +08:00

37 lines
1.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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("StartMP4.mp4");
GameManager.Instance.PageOne=true;
}
// Update is called once per frame
void Update()
{
}
private void OnBtnStartClick()
{
GameManager.Instance.stopAnimation = true;
GameManager.Instance.StopVideoPlayer();
GameManager.Instance.infoTGo.text = GameManager.Instance.infoShow.ParseClickableText("小船可手动翻转查看结构哦\n\n\n[我想进入上一阶段的学习]\r\n[我结束今天的学习]");
GameManager.Instance.Shop.gameObject.SetActive(true);
GameManager.Instance.SetActiveShop(0);
GameManager.Instance.ImgMask.SetActive(true);
}
}