Class UnityGameUiService
Inheritance
UnityGameUiService
Assembly: Serenity.UnityGameUi.Infrastructure.dll
Syntax
public class UnityGameUiService : MonoBehaviour, IGameUiService, IService, IFoundationSettings
Constructors
UnityGameUiService()
Declaration
public UnityGameUiService()
Properties
ActiveScreen
Declaration
public UiScreenId ActiveScreen { get; }
Property Value
CurrentHudState
Declaration
public HudState CurrentHudState { get; }
Property Value
CurrentResultsState
Declaration
public ResultsState CurrentResultsState { get; }
Property Value
Guid
Declaration
public string Guid { get; set; }
Property Value
Id
Declaration
public string Id { get; set; }
Property Value
LogService
Declaration
public ILogService LogService { get; set; }
Property Value
Methods
HideHud()
Declaration
HideResults()
Declaration
public void HideResults()
InitializeService(ILogService, IGameHudPresenter, IGameResultsPresenter)
Initializes the service with required dependencies.
Declaration
public void InitializeService(ILogService logService, IGameHudPresenter hudPresenter, IGameResultsPresenter resultsPresenter)
Parameters
SetActiveScreen(UiScreenId)
Declaration
public void SetActiveScreen(UiScreenId screenId)
Parameters
SetHudState(HudState)
Declaration
public void SetHudState(HudState hudState)
Parameters
ShowHud()
Declaration
ShowResults(bool, float)
Declaration
public void ShowResults(bool isVictory, float finalTime)
Parameters
| Type |
Name |
Description |
| bool |
isVictory |
|
| float |
finalTime |
|
Implements