AccessibilityFeaturesChecker
A class in Root.Township, the global namespace.
Shows the accessibility popup once, if the features are off and the player hasn't been asked before.
Constructors
| Member | What it is |
|---|
AccessibilityFeaturesChecker() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private PopupBoard accessibilityPopup | The popup board prefab. |
private Transform popupPosition | Optional place to spawn the popup. |
private const string prefsKey | Player prefs key marking that the player has been asked. |
Methods
4 private and internal methods
| Member | What it is |
|---|
private void DecisionMade(IPopupBoard board) | Records in player prefs that the player has been asked. |
private void Setup(IPopupBoard board) | Hooks the popup's Closed event. |
private void ShowPopup() | Spawns the popup at popupPosition, or through PopupManager if none is set. |
private void Start() | Shows the popup if the features are off and the prefs key isn't set. |