protected override void Start() { base.Start(); initializeLocalization(); #region Auth Controller Callbacks authController.OnInitializingFirebase += onInitializingFirebase; authController.OnFirebaseReady += onFirebaseReady; authController.OnAuthenticationSuccess += onRegistrationSuccessful; authController.OnFirebaseInitializationFailure += onFirebaseInitializationFailure; #endregion #region Error Handlers authController.OnAccountDisabled += onAccountDisabled; authController.OnAccountNotFound += onAccountNotFound; authController.OnInvalidEmailFormat += onInvalidEmailFormat; authController.OnInvalidPasswordForUser += onInvalidEmailForUser; authController.OnMissingPassword += onMissingPassword; authController.OnNetworkError += onNetworkError; authController.OnPasswordTooWeak += onPasswordTooWeak; authController.OnUnexpectedError += onUnexpectedError; #endregion #region UI Callbacks loginUI.OnProceed += onStartLogin; loginUI.OnNavigation += onClickRegistration; registrationUI.OnProceed += onStartRegistration; registrationUI.OnNavigation += onCancelRegistration; #endregion if (authController.FirebaseReady) { onFirebaseReady(); } currentUNPWEntry = loginUI; }
private void onCancelRegistration() { currentUNPWEntry = loginUI; registrationPanel.SetActive(false); entryPoint.SetActive(true); }
private void onClickRegistration() { currentUNPWEntry = registrationUI; entryPoint.SetActive(false); registrationPanel.SetActive(true); }