25 lines
474 B
C#
25 lines
474 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class TimeHM : MonoBehaviour
|
|
{
|
|
public Text time_text;
|
|
public int when;
|
|
public int points;
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
when = DateTime.Now.Hour;
|
|
points = DateTime.Now.Minute;
|
|
time_text.text =string.Format("{0:D2} : {1:D2}", when, points);
|
|
}
|
|
}
|