Class UnityGameScreenPresenter
Unity MonoBehaviour implementation of IGameScreenPresenter.
Implements
Namespace: Serenity.GameUi.Infrastructure.Presenters
Assembly: Serenity.UnityGameUi.Infrastructure.dll
Syntax
public class UnityGameScreenPresenter : MonoBehaviour, IGameScreenPresenter
Remarks
Provides a minimal stub that maps screen ids to root GameObjects, activating the root matching the active screen and deactivating the rest. Concrete games should extend or replace this with project-specific rendering logic.
Constructors
UnityGameScreenPresenter()
Declaration
public UnityGameScreenPresenter()
Methods
ShowScreen(UiScreenId, UiScreenId)
Declaration
public void ShowScreen(UiScreenId screenId, UiScreenId previousScreenId)
Parameters
| Type | Name | Description |
|---|---|---|
| UiScreenId | screenId | |
| UiScreenId | previousScreenId |