using Axibug.Runtime;
using UnityEngine;
namespace Game
{
///
/// 游戏入口。
///
public partial class AppEntry : MonoBehaviour
{
///
/// 获取游戏基础组件。
///
public static BaseComponent Base
{
get;
private set;
}
///
/// 获取有限状态机组件。
///
public static FsmComponent Fsm
{
get;
private set;
}
///
/// 获取流程组件。
///
public static ProcedureComponent Procedure
{
get;
private set;
}
///
/// 获取事件组件。
///
public static EventComponent Event
{
get;
private set;
}
///
/// 获取网络组件。
///
public static WebRequestComponent WebRequest
{
get;
private set;
}
///
/// 对象池组件
///
public static ObjectPoolComponent OjbectPool
{
get;
private set;
}
private static void InitBuiltinComponents()
{
Base = GameEntry.GetComponent();
Event = GameEntry.GetComponent();
Procedure = GameEntry.GetComponent();
Fsm = GameEntry.GetComponent();
WebRequest = GameEntry.GetComponent();
OjbectPool = GameEntry.GetComponent();
}
}
}