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

35 lines
939 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class OnePageStart : UiBase
{
public Button btnStart;
// Start is called before the first frame update
void Start()
{
btnStart.onClick.AddListener(OnBtnStartClick);
}
// Update is called once per frame
void Update()
{
}
private void OnBtnStartClick()
{
GameManager.Instance.infoTGo.text = GameManager.Instance.infoShow.ParseClickableText("你好啊,我是你的助手小知\r\n你想了解什么呢?\r\n高亮的部分可以点击哦!\r\n快来跟我一起学习吧\r\n\n\n[我想进入下一阶段的学习]\r\n[我结束今天的学习]");
GameManager.Instance.onePageOne.SetActive(true);
GameManager.Instance.aIquestionAnswer.SetActive(true);
GameManager.Instance.Robot.SetActive(true);
}
private void OnDisable()
{
this.gameObject.SetActive(false);
}
}