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

25 lines
447 B
C#
Raw Normal View History

2025-02-07 16:09:00 +08:00

using AlicizaX.Event.Runtime;
using AlicizaX.Runtime;
public static partial class GameApp
{
/// <summary>
/// 获取事件组件。
/// </summary>
public static EventComponent Event
{
get
{
if (_event == null)
{
_event = GameEntry.GetComponent<EventComponent>();
}
return _event;
}
}
private static EventComponent _event;
}