21 lines
407 B
C#
21 lines
407 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace YHElectric
|
|
{
|
|
public class UITimeUpdate : MonoBehaviour
|
|
{
|
|
Text timeText;
|
|
private void Start()
|
|
{
|
|
timeText = GetComponent<Text>();
|
|
}
|
|
void Update()
|
|
{
|
|
timeText.text = System.DateTime.Now.ToString();
|
|
}
|
|
}
|
|
}
|