AlicizaX/Client/Assets/Scripts/New/Example/App/ExampleAppRoot.cs

18 lines
414 B
C#
Raw Normal View History

2026-03-25 18:33:59 +08:00
using UnityEngine;
namespace Aliciza.Services.Example
{
public sealed class ExampleAppRoot : GameServiceRoot
{
[SerializeField] private bool _registerTimerService = true;
protected override void RegisterAppServices(ServiceScope appScope)
{
if (_registerTimerService)
{
appScope.Register(new TimerService());
}
}
}
}