20 lines
322 B
C#
20 lines
322 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class TextMirror : MonoBehaviour
|
|
{
|
|
public TMP_Text source;
|
|
TMP_Text target;
|
|
void Start()
|
|
{
|
|
target=GetComponent<TMP_Text>();
|
|
}
|
|
|
|
void Update()
|
|
{
|
|
target.text = source.text;
|
|
}
|
|
}
|