导入 TimerModule 计时器模块

This commit is contained in:
2026-06-18 22:50:46 +08:00
parent fbc7e66491
commit 0dc5889417
21 changed files with 1334 additions and 1 deletions
@@ -7,6 +7,7 @@ using SepCore.CameraModule;
using SepCore.SpriteCache;
using SepCore.UIRouter;
using SepCore.Simulation;
using SepCore.Timer;
/// <summary>
/// 游戏入口。
@@ -26,11 +27,13 @@ public partial class GameEntry
public static SpriteCacheComponent SpriteCache { get; private set; }
public static UIRouterComponent UIRouter { get; private set; }
public static InputModuleComponent InputModule { get; private set; }
public static CameraModuleComponent CameraModule { get; private set; }
public static TimerComponent Timer { get; private set; }
private static void InitCustomComponents()
{
BuiltinData = UnityGameFramework.Runtime.GameEntry.GetComponent<BuiltinDataComponent>();
@@ -42,5 +45,6 @@ public partial class GameEntry
UIRouter = UnityGameFramework.Runtime.GameEntry.GetComponent<UIRouterComponent>();
InputModule = UnityGameFramework.Runtime.GameEntry.GetComponent<InputModuleComponent>();
CameraModule = UnityGameFramework.Runtime.GameEntry.GetComponent<CameraModuleComponent>();
Timer = UnityGameFramework.Runtime.GameEntry.GetComponent<TimerComponent>();
}
}