Files
WildRoot/Assets/Script/RestartTextHandler.cs
T

21 lines
515 B
C#
Raw Normal View History

using UnityEngine;
using TMPro;
public class RestartTextHandler : MonoBehaviour
{
[SerializeField] private TextMeshProUGUI restartText;
void OnEnable()
{
if (restartText == null)
{
Debug.LogError("인스펙터에 텍스트 오브젝트를 할당해주세요!");
return;
}
if (GameSettings.IsMobile)
restartText.text = "Touch the screen to restart";
else
restartText.text = "Press the 'R' key to restart";
}
}