27 lines
468 B
C#
27 lines
468 B
C#
#if ALICIZAX_EVENT_SUPPORT
|
|
using AlicizaX.Event.Runtime;
|
|
using AlicizaX;
|
|
|
|
public static partial class GameApp
|
|
{
|
|
/// <summary>
|
|
/// 获取事件组件。
|
|
/// </summary>
|
|
public static IEventModule Event
|
|
{
|
|
get
|
|
{
|
|
if (_event == null)
|
|
{
|
|
_event = ModuleSystem.GetModule<IEventModule>();
|
|
}
|
|
|
|
return _event;
|
|
}
|
|
}
|
|
|
|
internal static IEventModule _event;
|
|
}
|
|
|
|
#endif
|