Class UnityAudioPlayerInstaller
Unity-specific installer for the Audio Player system that handles service creation and dependency injection.
Manages installation of audio player services, gateways, and factories with Unity-specific implementations.
Namespace: Serenity.AudioPlayer.Installation.Installers
Assembly: Serenity.UnityAudioPlayer.Installation.dll
Syntax
public class UnityAudioPlayerInstaller : AudioPlayerInstaller, IFoundationInstaller, IInstaller
Constructors
UnityAudioPlayerInstaller(IGameSettingsService, IEventDispatcherService, ILogService)
Initializes the Unity Audio Player installer with required dependencies.
Declaration
public UnityAudioPlayerInstaller(IGameSettingsService gameSettingsService, IEventDispatcherService eventDispatcherService, ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| IGameSettingsService | gameSettingsService | Service for accessing game configuration settings |
| IEventDispatcherService | eventDispatcherService | Service for handling audio playback events |
| ILogService | logService | Service for logging and error reporting |
Methods
Install(ILogService)
Installs all audio player system components including factories, services, gateways, and use cases.
Loads audio player settings from addressable assets and configures the complete audio infrastructure.
Declaration
public override void Install(ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogService | logService | Logging service for installation process tracking |