snakes_mp/Assets/Scripts/Utils/TextMirror.cs
2025-04-14 11:36:17 +05:30

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;
}
}