2023-06-08 14:09:50 +08:00
|
|
|
using System;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
2023-08-12 01:43:24 +08:00
|
|
|
|
2023-06-08 14:09:50 +08:00
|
|
|
namespace BITKit
|
|
|
|
{
|
|
|
|
public class ShowTime : BITBehavior
|
|
|
|
{
|
|
|
|
[SerializeReference,SubclassSelector]public References timeFormat;
|
|
|
|
public Provider output;
|
|
|
|
// Update is called once per frame
|
|
|
|
void Update()
|
|
|
|
{
|
|
|
|
output?.Set(timeFormat is not null ? DateTime.Now.ToString(timeFormat) : DateTime.Now.ToString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|