MyBook/Assets/script/BlackboardOne.cs
2025-03-22 15:17:36 +08:00

30 lines
845 B
C#
Raw 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 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.infoTGo.text = GameManager.Instance.infoShow.ParseClickableText("你好啊,我是你的助手小知\r\n你想了解哪些有关船的知识呢\r\n红色文字可以点击探索哦\r\n点击小木船的图片会有惊喜哦\r\n\n\n[我想进入下一阶段的学习]");
GameManager.Instance.SetActiveShop(0);
GameManager.Instance.ImgMask.SetActive(false);
GameManager.Instance.showVideoPlayer("StartMP4.mp4");
this.gameObject.SetActive(false);
}
}