Class UnityGameHudPresenter
Unity implementation of IGameHudPresenter: drives a UnityHudHostComponent from the abstract HUD state.
Implements
Namespace: Serenity.GameUi.Infrastructure.Presenters
Assembly: Serenity.UnityGameUi.Infrastructure.dll
Syntax
public class UnityGameHudPresenter : MonoBehaviour, IGameHudPresenter
Remarks
The presenter is the whole boundary between "what the UI represents" and "how it is drawn". The service only ever says visible/paused and which HUD is active; everything about anchors, bindings and representations lives on the other side of this call.
Constructors
UnityGameHudPresenter()
Declaration
public UnityGameHudPresenter()
Methods
HideHud()
Declaration
public void HideHud()
ShowHud()
Declaration
public void ShowHud()
UpdateHud(HudState)
Declaration
public void UpdateHud(HudState state)
Parameters
| Type | Name | Description |
|---|---|---|
| HudState | state |