27 lines
471 B
C#
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
|