27 lines
448 B
C#
27 lines
448 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
|
|
public class StatCanvas : MonoBehaviour
|
|
{
|
|
public static StatCanvas instance;
|
|
public TMP_Text txtVersion;
|
|
void Awake()
|
|
{
|
|
if(instance!=null){
|
|
Destroy(gameObject);
|
|
return;
|
|
}
|
|
|
|
instance = this;
|
|
DontDestroyOnLoad(gameObject);
|
|
}
|
|
|
|
void Start()
|
|
{
|
|
txtVersion.text = "v " + Application.version;
|
|
}
|
|
|
|
|
|
}
|