Class UnityHittableInstaller
Unity-specific installer for the Hittable service. Creates a UnityHittableService on a dedicated GameObject.
Namespace: Serenity.Hittable.Installation.Installers
Assembly: Serenity.UnityHittable.Installation.dll
Syntax
public class UnityHittableInstaller : HittableInstaller, IFoundationInstaller, IInstaller
Constructors
UnityHittableInstaller(IEventDispatcherService)
Initializes the Unity Hittable installer.
Declaration
public UnityHittableInstaller(IEventDispatcherService eventDispatcherService = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEventDispatcherService | eventDispatcherService | Dispatcher the installed service uses to broadcast |
Fields
SERVICE_NAME
Declaration
protected const string SERVICE_NAME = "HittableService"
Field Value
| Type | Description |
|---|---|
| string |
Methods
Install(ILogService)
Installs the Hittable service by creating the Unity MonoBehaviour implementation.
Declaration
public override void Install(ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogService | logService | The logging service for diagnostic output. |