Tanoda
TextRoller.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4using UnityEngine.UI;
5
6[RequireComponent(typeof(Text))]
7public class TextRoller : MonoBehaviour
8{
9 Text t;
10 byte c =0;
11
12 void Start() => t = GetComponent<Text>();
13
14
15 void Update()
16 {
17 t.text = ((char)c).ToString();
18 c++;
19 }
20}