Skip to main content

TutorialPromptBoard

A class in Root.Township, the global namespace.

Popup board asking the player whether to play the tutorial. Join loads the tutorial scene; skip closes the board. Client side.

Constructors​

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

Fields​

5 private and internal fields
MemberWhat it is
private bool isJoiningTrue once join was pressed, to block repeats.
private PhysicalButton joinTutorialButtonButton that starts the tutorial.
private PhysicalButton skipTutorialButtonButton that closes the board.
private string skipTutorialFollowupMessageMessage text for a follow-up after skipping. Not used in this class.
private string skipTutorialFollowupTitleTitle for a follow-up after skipping. Not used in this class.

Events​

MemberWhat it is
event Action JoinTutorialSelectedRaised when the player picks the tutorial, before it loads.

Methods​

2 private and internal methods
MemberWhat it is
private void Awake()Hooks the join button to JoinTutorial and the skip button to close.
private async void JoinTutorial()Raises JoinTutorialSelected, loads the tutorial scene and closes. Ignores repeat presses.

Used in​

Members of other types that take, return or hold a TutorialPromptBoard: