H_SafeExperienceDrivingSystem/U3D_DrivingSystem/Assets/Script/Old/DymanicTxt.cs

20 lines
420 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;
public class DymanicTxt : MonoBehaviour
{
Text txt;
// Start is called before the first frame update
void Start()
{
txt = this.GetComponent<Text>();
print("场景加载");
string str1 = "场 景 加 载 中 。。。";
txt.DOText(str1,2);
}
}