DI Lifecycle Design
This guide connects scene transitions, popups, data services, and in-game logic through DI.
Overall structure
Register global services in Bootstrap and scene-specific services in the Lobby or InGame scopes. When a scene unloads, AchEngineScope.OnDestroy() disposes that scope's services.
Scene transition
Popup data
Pass data to a UIView popup through the Show callback:
Data services
Wrap Table data in a service and inject ITableService into game services. From a MonoBehaviour, use ServiceLocator.Resolve<T>() when container construction is not involved.