Skip to main content

EmailVerificationManager

A class in Root.Township, the global namespace.

UI for the email verification popup: validates the typed address and asks the API to change the account email to it, which probably sends the verification mail.

Constructors​

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

Fields​

6 private and internal fields
MemberWhat it is
private InputField emailInputField where the address is typed.
private TextRenderer errorMessageText that shows validation or API errors.
private bool isSendingTrue while a request is running, to block repeats.
private static Logger loggerNLog logger for this class.
private GameObject resultMessageObject shown when the request succeeds.
private GameObject timerObjectObject shown while the request runs.

Methods​

MemberWhat it is
async void SendVerification()Validates the input, calls the API's ChangeEmail with it and shows the result or the error.