com.alicizax.unity.framework/Runtime/Timer/TimerComponent.cs
陈思海 cad7722e44 优化
1.重名所有App级模块为Service
2.移除Module中心 移除SingletonManager
3.引入Service Scope Context概念  避免上下文Manager到处引用
4.修复部分bug
2026-03-26 16:14:05 +08:00

17 lines
388 B
C#

using AlicizaX;
using UnityEngine;
namespace AlicizaX.Timer.Runtime
{
[DisallowMultipleComponent]
[AddComponentMenu("Game Framework/Timer")]
[UnityEngine.Scripting.Preserve]
public sealed class TimerComponent : MonoBehaviour
{
private void Awake()
{
AppServices.GetOrCreateScope<AppScope>().Register(new TimerService());
}
}
}