com.alicizax.unity.entry/Runtime/GameApp.Event.cs
2025-08-06 13:28:34 +08:00

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