This commit is contained in:
18
Assets/TextDecalRuntimeInit.cs
Normal file
18
Assets/TextDecalRuntimeInit.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user