private void HandleOnLoginAttempt(AccountLoginResolution resolution) { switch (resolution) { case AccountLoginResolution.SUCCESS: toastPanel.OpenPopup(); break; case AccountLoginResolution.FAILED: toastPanel.OpenPopup(); break; default: throw new System.Exception("AccountCreationResolution not implemented: " + resolution.ToString()); } }
void HandleOnAccountCreation(AccountRegisterResolution resolution) { switch (resolution) { case AccountRegisterResolution.SUCCESS: toastPanel.OpenPopup(); this.gameObject.SetActive(false); basePanel.SetActive(true); break; case AccountRegisterResolution.FAILED: toastPanel.OpenPopup(); break; default: throw new System.Exception("AccountCreationResolution not implemented: " + resolution.ToString()); } }