You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
503 B

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<Text>();
}
public void Show()
{
StartCoroutine(new DialoguePlayer().IETextPlayer(content, (value) => { text.text = value; }));
}
public void ChangeText(string text)
{
content = text;
}
}