24 lines
537 B
C#
24 lines
537 B
C#
|
|
using System;
|
|||
|
|
using AlicizaX.Runtime;
|
|||
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
namespace AlicizaX.EventKit.Runtime
|
|||
|
|
{
|
|||
|
|
[DisallowMultipleComponent]
|
|||
|
|
[AddComponentMenu("Game Framework/EventKit")]
|
|||
|
|
[UnityEngine.Scripting.Preserve]
|
|||
|
|
public sealed class EventKitComponent : GameFrameworkComponent
|
|||
|
|
{
|
|||
|
|
protected override void Awake()
|
|||
|
|
{
|
|||
|
|
IsAutoRegister = false;
|
|||
|
|
base.Awake();
|
|||
|
|
EventKit.Init();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected void OnDestroy()
|
|||
|
|
{
|
|||
|
|
EventKit.Release();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|