23 lines
544 B
C#
23 lines
544 B
C#
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using UnityEngine;
|
|||
|
|
using TMPro;
|
|||
|
|
|
|||
|
|
public class InterpolateHelperTexts : MonoBehaviour
|
|||
|
|
{
|
|||
|
|
private string textToShow;
|
|||
|
|
private TextMeshProUGUI thisText;
|
|||
|
|
// Start is called before the first frame update
|
|||
|
|
void Awake()
|
|||
|
|
{
|
|||
|
|
thisText = GetComponent<TextMeshProUGUI>();
|
|||
|
|
textToShow = thisText.text;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// Update is called once per frame
|
|||
|
|
void Update()
|
|||
|
|
{
|
|||
|
|
thisText.text = InputMessageHandler.Instance.Interpolate($"{textToShow}");
|
|||
|
|
}
|
|||
|
|
}
|