Skip to content

Commit b7cc45f

Browse files
committed
文字动画
1 parent 635341b commit b7cc45f

4 files changed

Lines changed: 42 additions & 0 deletions

File tree

12.2 KB
Binary file not shown.

DoTweenTraining/DoTweenProject/Assets/Scenes/TextTween.unity.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using DG.Tweening;
4+
using UnityEngine;
5+
using UnityEngine.UI;
6+
7+
public class MyText : MonoBehaviour
8+
{
9+
10+
private Text _text;
11+
// Use this for initialization
12+
void Start ()
13+
{
14+
_text = this.GetComponent<Text>();
15+
_text.DOText("接下来,进入游戏第二篇章", 4);
16+
}
17+
18+
// Update is called once per frame
19+
void Update () {
20+
21+
}
22+
}

DoTweenTraining/DoTweenProject/Assets/Scripts/MyText.cs.meta

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)