using AlicizaX.Runtime; using AlicizaX.Timer.Runtime; public static partial class GameApp { /// /// 获取定时器组件。 /// public static TimerComponent Timer { get { if (_timer == null) { _timer = GameEntry.GetComponent(); } return _timer; } } private static TimerComponent _timer; }