AlicizaX/Client/Packages/com.alicizax.unity.entry/Runtime/GameApp.Timer.cs

27 lines
471 B
C#
Raw Normal View History

2025-09-02 16:30:55 +08:00
#if ALICIZAX_TIMER_SUPPORT
using AlicizaX;
2025-01-23 19:06:48 +08:00
using AlicizaX.Timer.Runtime;
public static partial class GameApp
{
/// <summary>
/// 获取定时器组件。
/// </summary>
2025-04-28 19:45:45 +08:00
public static ITimerModule Timer
2025-01-23 19:06:48 +08:00
{
get
{
if (_timer == null)
{
2025-04-28 19:45:45 +08:00
_timer = ModuleSystem.GetModule<ITimerModule>();
2025-01-23 19:06:48 +08:00
}
return _timer;
}
}
2025-04-28 19:45:45 +08:00
internal static ITimerModule _timer;
}
2025-09-02 16:30:55 +08:00
#endif