BITKit/Packages/Runtime~/Unity/Common/Scripts/Components/ShowTime.cs

19 lines
470 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
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());
}
}
}