public void LionBirthdayImage() { if (Dialog.GetComponent <Dialog> ().LineNumber == 1) { Friend1.SetActive(false); Friend2.SetActive(true); } else if (Dialog.GetComponent <Dialog> ().LineNumber == 2) { Friend2.SetActive(false); Friend3.SetActive(true); } else if (Dialog.GetComponent <Dialog> ().LineNumber == 4) { Friend3.SetActive(false); Friend2.SetActive(true); } else if (Dialog.GetComponent <Dialog> ().LineNumber == 5) { Friend2.SetActive(false); Friend1.SetActive(true); } else if (Dialog.GetComponent <Dialog> ().LineNumber == 6) { Friend1.SetActive(false); Friend3.SetActive(true); } }
public Dictionary <string, string> FBListFriendFromUID(List <string> Handle, string UID) { Dictionary <string, string> result = new Dictionary <string, string>(); string html = http.Get("https://graph.facebook.com/" + UID + "?fields=friends.fields(id,name)&access_token=" + Handle[3]).ToString(); Clipboard.SetText(html); Friend fr = JsonConvert.DeserializeObject <Friend>(html); Friend2 fr2 = fr.friends; List <Friend3> listFriend3 = fr2.data.ToList(); for (int i = 0; i < listFriend3.Count; i++) { Friend3 fr3 = listFriend3[i]; result.Add(fr3.id, fr3.name); // MessageBox.Show("Ten = " + fr3.name); } return(result); }