Files
source/Assets/Scripts/VersionText.cs
2025-06-05 21:31:25 -07:00

19 lines
414 B
C#

using TMPro;
using UnityEngine;
public class VersionText : MonoBehaviour
{
private TMP_Text text;
void Awake()
{
text = gameObject.GetComponent<TMP_Text>();
if (Application.platform != RuntimePlatform.WebGLPlayer)
{
text.text = "Current: v" + Application.version;
}
else
{
text.text = "v" + Application.version;
}
}
}