[+] TEngineServer

[+] TEngineServer
This commit is contained in:
ALEXTANG
2023-07-13 17:17:26 +08:00
parent a69f53592e
commit 0c8f3a5f92
790 changed files with 52737 additions and 2533 deletions

View File

@@ -0,0 +1,21 @@
using TEngine.Core;
#if TENGINE_UNITY
using UnityEngine;
#endif
namespace TEngine
{
public sealed class TimerScheduler : Singleton<TimerScheduler>, IUpdateSingleton
{
public readonly TimerSchedulerCore Core = new TimerSchedulerCore(() => TimeHelper.Now);
#if TENGINE_UNITY
public readonly TimerSchedulerCore Unity = new TimerSchedulerCore(() => (long) (Time.time * 1000));
#endif
public void Update()
{
Core.Update();
#if TENGINE_UNITY
Unity.Update();
#endif
}
}
}