public void SignIn(eRegistrationMethodType registrationMethodType) { switch (registrationMethodType) { case eRegistrationMethodType.Google: { signInGoogle(); break; } case eRegistrationMethodType.Facebook: { signInFacebook(); break; } default: { if (OnSignInEvent != null) { OnSignInEvent(registrationMethodType, false, eRegistrationResultType.UnkownService); return; } break; } } }
private void registrationManager_OnSignInEvent(eRegistrationMethodType reg, bool success, eRegistrationResultType resultType, string message = "") { if (!success) { AppManager.Instance.PopupManager.ShowConfirmPopup(message); return; } _uiLoaderManager.SetActive(UILoaderManager.eUIType.ChatLobby, true); }
public void SignOut(eRegistrationMethodType registrationMethodType) { switch (registrationMethodType) { case eRegistrationMethodType.Google: { signOutGoogle(); break; } default: { break; } } }