com.alicizax.unity.entry/Runtime/GameApp.Event.cs

25 lines
433 B
C#
Raw Normal View History

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-03-20 20:47:26 +08:00
private static IEventModule _event;
2025-02-07 16:09:00 +08:00
}