Example #1
0
 public void LoadFbUser()
 {
     UserName.text = data.Name;
     StartCoroutine(DownloadImage(data.Photo_url, PicPanel));
     StartCoroutine(DownloadImage(data.Photo_url, AccountBtnIcon));
     LoginPanel.SetActive(false);
     ShowPP.SetActive(true);
     FBLogoutButton.SetActive(true);
 }
Example #2
0
 public void LoadAnonymousUser()
 {
     UserName.text          = "Guest" + data.ID.Substring(1, 6);
     AccountBtnIcon.texture = AnonyIcon.texture;
     PicPanel.texture       = AnonyIcon.texture;
     ShowPP.SetActive(true);
     LoginPanel.SetActive(false);
     AnonyLogoutButton.SetActive(true);
 }