GameVersionText.cs 373 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using TMPro;
  5. namespace KairoEngine.UI
  6. {
  7. public class GameVersionText : MonoBehaviour
  8. {
  9. public TextMeshProUGUI text;
  10. public string appendText = "v";
  11. void Start()
  12. {
  13. text.text = $"{appendText}{Application.version}";
  14. }
  15. }
  16. }