com.alicizax.unity.entry/Runtime/GameApp.Timer.cs
2025-08-06 13:28:34 +08:00

27 lines
471 B
C#

#if ALICIZAX_TIMER_SUPPORT
using AlicizaX;
using AlicizaX.Timer.Runtime;
public static partial class GameApp
{
/// <summary>
/// 获取定时器组件。
/// </summary>
public static ITimerModule Timer
{
get
{
if (_timer == null)
{
_timer = ModuleSystem.GetModule<ITimerModule>();
}
return _timer;
}
}
internal static ITimerModule _timer;
}
#endif