Class UnityGameSessionInstaller
Unity-specific installer for the GameSession service.
Namespace: Serenity.GameSession.Installation.Installers
Assembly: Serenity.UnityGameSession.Installation.dll
Syntax
public class UnityGameSessionInstaller : GameSessionInstaller, IFoundationInstaller, IInstaller
Remarks
Creates the UnityGameSessionService on a dedicated GameObject and registers a game-session timer via the ITimerService.
Constructors
UnityGameSessionInstaller()
Declaration
public UnityGameSessionInstaller()
Methods
Install(ILogService, ITimerService)
Installs the GameSession service by creating the Unity MonoBehaviour implementation and registering a scaled timer for session elapsed-time tracking.
Declaration
public override void Install(ILogService logService, ITimerService timerService)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogService | logService | The logging service for diagnostic output. |
| ITimerService | timerService | The timer service used to register the session timer. |