void EvaluateAccountInfo() { if (PlayFabLoginCalls.LoggedInUserInfo != null) { this.InfoHeading.text = string.Format("PlayFab Account Info ({0}):", PlayFabLoginCalls.LoggedInUserInfo.PlayFabId); if (PlayFabLoginCalls.LoggedInUserInfo.Username == null && PlayFabLoginCalls.LoggedInUserInfo.PrivateInfo.Email == null) { partialAccount.gameObject.SetActive(true); completeAccount.gameObject.SetActive(false); } else { partialAccount.gameObject.SetActive(false); completeAccount.gameObject.SetActive(true); this.activeEmail.text = string.Format("Email: {0}", PlayFabLoginCalls.LoggedInUserInfo.PrivateInfo.Email); this.activeUser.text = string.Format("Username: {0}", PlayFabLoginCalls.LoggedInUserInfo.Username); } if (!string.IsNullOrEmpty(PlayFabLoginCalls.LoggedInUserInfo.TitleInfo.DisplayName)) { this.displayName.text = PlayFabLoginCalls.LoggedInUserInfo.TitleInfo.DisplayName; } if (string.IsNullOrEmpty(PlayFabLoginCalls.android_id) && string.IsNullOrEmpty(PlayFabLoginCalls.ios_id)) { LinkDevice.GetComponent <Image>().color = Color.green; LinkDevice.transform.FindChild("Text").GetComponent <Text>().text = "Link this device to this account"; LinkDevice.onClick.RemoveAllListeners(); LinkDevice.onClick.AddListener(() => PlayFabLoginCalls.LinkDeviceId()); } else { LinkDevice.GetComponent <Image>().color = Color.red; LinkDevice.transform.FindChild("Text").GetComponent <Text>().text = "Unlink this device to this account"; LinkDevice.onClick.RemoveAllListeners(); LinkDevice.onClick.AddListener(() => PlayFabLoginCalls.UnlinkDeviceId()); } } else { Debug.Log("Account was null"); } }