need sample about PhotonNetwork.Friends

hi All,
im using PhotonNetwork to build an Moba game. Photon Network is Great solution of Network.
i have problem and knowledge about Friends in PhotonNetwork.

anyone can show (code) or (project) that using :
-PhotonNetwork.FindFriends
-PhotonNetwork.Friends
-PhotonNetwork.FriendsListAge
how to implement them to game lobby or game room

thanks
:D:);)

Comments

  • HI,

    FindFriends use discussed several times in the form. For example:
    viewtopic.php?f=17&t=5456&hilit=FindFriends
    viewtopic.php?f=17&t=4494&p=20884&hilit=FindFriends#p20884

    PhotonNetwork.FriendsListAge is age of friend list info (in milliseconds). It's 0 until a friend list is fetched. (from documentation)
  • on the way
  • i want to knowledge all about PhotonNetwork.Friends

    how to addfriends?
    how to getlist of my friends?

    how to show name list of my friend?
    how to kick or all about friends like facebook function?

    i have knowledge about Photon just by research an project like viking photon and forum, but im not find any sample (may as full simple project) that i can understanding about PhotonNetwork.Friends, cos this classes very needed to me
    :);)
    help me pls,

    this sample code i try :
    if (PhotonNetwork.Friends != null)
    				{
    					foreach (FriendInfo info in PhotonNetwork.Friends)
    					{
    						if (info.IsOnline)
    						{
    							users.Add(info.Name.ToString());
    						}
    					}
    				}
    
  • from the latest code, found 0 friends
    how to addfriend?
  • Please use only one topic to discuss this:
    viewtopic.php?f=17&t=4494&p=21633#p21639

    You need some external service to add/remove friends and to get a list of their names. Then you need to use that service's user ID as custom auth value in Photon to be findable.
    You need to be on the Master Server (not in the room) to find friends.
  • aanimation
    edited February 2015
    hi All, im really sorry about this post,

    i just found a sample in https://www.assetstore.unity3d.com/en/#!/content/1786 .. hahahahaa

    im feeling stupid at last :mrgreen::mrgreen::mrgreen: