Skip to main content

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​

MemberWhat it is
AccessibilityFeaturesChecker()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

3 private and internal fields
MemberWhat it is
private PopupBoard accessibilityPopupThe popup board prefab.
private Transform popupPositionOptional place to spawn the popup.
private const string prefsKeyPlayer prefs key marking that the player has been asked.

Methods​

4 private and internal methods
MemberWhat 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.