19 lines
451 B
C#
19 lines
451 B
C#
using space.chikalin.textdecal;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class TextDecalRuntimeInit : MonoBehaviour
|
|
{
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
gameObject.AddComponent<TextDecal>();
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
gameObject.GetComponent<TMP_Text>().text = $"{Time.timeSinceLevelLoad:0.000}";
|
|
}
|
|
}
|