using SepCore.CustomComponent; using UnityEngine; /// /// 游戏入口。 /// public partial class GameEntry : MonoBehaviour { public static BuiltinDataComponent BuiltinData { get; private set; } public static LubanComponent Luban { get; private set; } public static SaveComponent Save { get; private set; } public static RandomComponent Random { get; private set; } public static TurnBattleComponent TurnBattle { get; private set; } /// /// 单局战斗协调器(普通类,非场景组件)。 /// public static RunBattleCoordinator RunBattle { get; private set; } private static void InitCustomComponents() { BuiltinData = UnityGameFramework.Runtime.GameEntry.GetComponent(); Luban = UnityGameFramework.Runtime.GameEntry.GetComponent(); Save = UnityGameFramework.Runtime.GameEntry.GetComponent(); Random = UnityGameFramework.Runtime.GameEntry.GetComponent(); TurnBattle = UnityGameFramework.Runtime.GameEntry.GetComponent(); RunBattle = new RunBattleCoordinator(); } }