Esempio n. 1
0
    public static void FacebookFriendUpdate(FACEBOOK_FRIEND_GAMEINFO Data)
    {
        SortedDictionary <string, FacebookUserData> friendsData = NmFacebookManager.instance.FriendsData;
        string key = TKString.NEWString(Data.szFaceBookID);

        if (friendsData.ContainsKey(key))
        {
            friendsData[key].Level         = Data.nCharLevel;
            friendsData[key].nFaceCharKind = Data.nFaceCharKind;
            friendsData[key].m_GameName    = TKString.NEWString(Data.szCharName);
        }
    }
Esempio n. 2
0
    public void SetUserData(FACEBOOK_FRIEND_GAMEINFO Data)
    {
        FacebookUserData facebookUserData = this.FindFriendData(TKString.NEWString(Data.szFaceBookID));

        if (facebookUserData != null)
        {
            facebookUserData.m_GameName    = TKString.NEWString(Data.szCharName);
            facebookUserData.nFaceCharKind = Data.nFaceCharKind;
            facebookUserData.Level         = Data.nCharLevel;
            NmFacebookManager.instance.FriendsData[facebookUserData.m_ID] = facebookUserData;
        }
    }