viewers access
public class UI.UIManager
CyberPsychosis > UI > UIManager
Works similar to a state machine, but slightly altered to enable and disable objects. Handles the game UI screens from code.
using UnityEngine;
public class ExampleClass : MonoBehaviour
{
void Start()
{
UIManager.SwitchState<ShopState>();
}
}
| Name | Description |
|---|---|
|
Switch the state to the state of type T. T must derive from UIState |
|
Disable the current state without enabling another one. |