25 lines
474 B
C#
25 lines
474 B
C#
![]() |
|
|||
|
using AlicizaX.EventKit.Runtime;
|
|||
|
using AlicizaX.Runtime;
|
|||
|
|
|||
|
public static partial class GameApp
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 获取事件组件。
|
|||
|
/// </summary>
|
|||
|
public static EventKitComponent EventKit
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
if (_eventkit == null)
|
|||
|
{
|
|||
|
_eventkit = GameEntry.GetComponent<EventKitComponent>();
|
|||
|
}
|
|||
|
|
|||
|
return _eventkit;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
private static EventKitComponent _eventkit;
|
|||
|
}
|