导入 TimerModule 计时器模块
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user