using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using XWFramework.Tools; public class Tip : MonoBehaviour { string content; Text text; private void Awake() { text = GetComponentInChildren(); } public void Show() { StartCoroutine(new DialoguePlayer().IETextPlayer(content, (value) => { text.text = value; })); } public void ChangeText(string text) { content = text; } }