com.alicizax.unity.framework/Runtime/Timer/TimerComponent.cs

17 lines
388 B
C#
Raw Normal View History

2025-09-05 19:46:30 +08:00
using AlicizaX;
using UnityEngine;
namespace AlicizaX.Timer.Runtime
{
[DisallowMultipleComponent]
[AddComponentMenu("Game Framework/Timer")]
[UnityEngine.Scripting.Preserve]
public sealed class TimerComponent : MonoBehaviour
2025-09-05 19:46:30 +08:00
{
private void Awake()
{
AppServices.GetOrCreateScope<AppScope>().Register(new TimerService());
2025-09-05 19:46:30 +08:00
}
}
}