Beispiel #1
0
    public void ShowRegistration()
    {
        Action <AddUsernamePasswordResult> afterRegistration = result =>
        {
            PF_PlayerData.accountInfo.Username          = result.Username;
            PF_PlayerData.accountInfo.PrivateInfo.Email = "Pending Refresh";

            Dictionary <string, object> eventData = new Dictionary <string, object>()
            {
                //pull emailf from RC due to it not being returned.
                { "Username", result.Username },
                { "Email", rc.email.text }
            };
            PF_Bridge.LogCustomEvent(PF_Bridge.CustomEventTypes.Client_RegisteredAccount, eventData);

            registerAccount.gameObject.SetActive(false);
            accountStatus.text = GlobalStrings.ACT_STATUS_REG_MSG;
            resetPassword.gameObject.SetActive(true);
            accountStatus.color = Color.green;
        };

        rc.gameObject.SetActive(true);
        rc.Init(afterRegistration);
    }