1
This commit is contained in:
18
Packages/Runtime/Components/ShowTime.cs
Normal file
18
Packages/Runtime/Components/ShowTime.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Sirenix.OdinInspector;
|
||||
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());
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user