2025-02-07 16:09:00 +08:00
|
|
|
|
|
|
|
|
|
using AlicizaX.Event.Runtime;
|
2025-03-24 13:17:07 +08:00
|
|
|
|
using AlicizaX;
|
2025-02-07 16:09:00 +08:00
|
|
|
|
|
|
|
|
|
public static partial class GameApp
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取事件组件。
|
|
|
|
|
/// </summary>
|
2025-03-20 20:47:26 +08:00
|
|
|
|
public static IEventModule Event
|
2025-02-07 16:09:00 +08:00
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (_event == null)
|
|
|
|
|
{
|
2025-03-20 20:47:26 +08:00
|
|
|
|
_event = ModuleSystem.GetModule<IEventModule>();
|
2025-02-07 16:09:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return _event;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-02 19:28:28 +08:00
|
|
|
|
internal static IEventModule _event;
|
2025-02-07 16:09:00 +08:00
|
|
|
|
}
|