23 lines
419 B
C#
23 lines
419 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class TimeHM : MonoBehaviour
|
|
{
|
|
public Text H_txt;
|
|
public Text M_txt2;
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
H_txt.text = DateTime.Now.Hour.ToString();
|
|
M_txt2.text = DateTime.Now.Minute.ToString();
|
|
}
|
|
}
|