Example #1
0
    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;
        }
        }
    }
Example #2
0
    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);
    }
Example #3
0
    public void SignOut(eRegistrationMethodType registrationMethodType)
    {
        switch (registrationMethodType)
        {
        case eRegistrationMethodType.Google:
        {
            signOutGoogle();
            break;
        }

        default:
        {
            break;
        }
        }
    }