AkiraPixelWind/Assets/Scripts/Main/Base/AppEntry.Builtin.cs

75 lines
1.7 KiB
C#
Raw Normal View History

2022-12-29 18:20:40 +08:00
using Axibug.Runtime;
using UnityEngine;
namespace Game
{
/// <summary>
/// <20><>Ϸ<EFBFBD><CFB7><EFBFBD>ڡ<EFBFBD>
/// </summary>
public partial class AppEntry : MonoBehaviour
{
/// <summary>
/// <20><>ȡ<EFBFBD><C8A1>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public static BaseComponent Base
{
get;
private set;
}
/// <summary>
/// <20><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public static FsmComponent Fsm
{
get;
private set;
}
/// <summary>
/// <20><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public static ProcedureComponent Procedure
{
get;
private set;
}
/// <summary>
/// <20><>ȡ<EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public static EventComponent Event
{
get;
private set;
}
/// <summary>
/// <20><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public static WebRequestComponent WebRequest
{
get;
private set;
}
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public static ObjectPoolComponent OjbectPool
{
get;
private set;
}
private static void InitBuiltinComponents()
{
Base = GameEntry.GetComponent<BaseComponent>();
Event = GameEntry.GetComponent<EventComponent>();
Procedure = GameEntry.GetComponent<ProcedureComponent>();
Fsm = GameEntry.GetComponent<FsmComponent>();
WebRequest = GameEntry.GetComponent<WebRequestComponent>();
OjbectPool = GameEntry.GetComponent<ObjectPoolComponent>();
}
}
}