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); } }