清理项目目录,引入 InputModule 做多平台输入适配
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using SepCore.DamageText;
|
||||
using SepCore.EnemyManager;
|
||||
using SepCore.HPBar;
|
||||
using SepCore.InputModule.Runtime;
|
||||
using SepCore.SpriteCache;
|
||||
using SepCore.UIRouter;
|
||||
using SepCore.Simulation;
|
||||
@@ -24,6 +25,8 @@ 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; }
|
||||
|
||||
private static void InitCustomComponents()
|
||||
{
|
||||
@@ -34,5 +37,6 @@ public partial class GameEntry
|
||||
SimulationWorld = UnityGameFramework.Runtime.GameEntry.GetComponent<SimulationWorld>();
|
||||
SpriteCache = UnityGameFramework.Runtime.GameEntry.GetComponent<SpriteCacheComponent>();
|
||||
UIRouter = UnityGameFramework.Runtime.GameEntry.GetComponent<UIRouterComponent>();
|
||||
InputModule = UnityGameFramework.Runtime.GameEntry.GetComponent<InputModuleComponent>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user