//好友列表資料 void FriendList() { foreach (GameObject item in PlayerListDictionary.Values) { Destroy(item); } PlayerListDictionary.Clear(); BusinessListScrollBar.barSize = 1; if (PlayerListCheck.GetAllPlayerList.Count != 0) { List <ulong> CkeckList = new List <ulong>(); foreach (var item in PlayerListCheck.GetAllPlayerList) { //if (SNS_Manager.Public_GroupsMemberData.ContainsKey(item.Key)) //{ // if (item.Key != MainConnet.m_PlayerData.m_uiDBID) // { // CkeckList.Add(item.Key); // } //} if (SNS_Manager.m_dicFriends.ContainsKey(item.Key) && item.Key != MainConnet.m_PlayerData.m_uiDBID) { CkeckList.Add(item.Key); } } int Number = 0; foreach (uint item in CkeckList) { GameObject Data = Instantiate(PlayerDataObject); Data.transform.parent = PlayerDataTable.transform; Data.transform.localScale = new Vector3(1, 1, 1); PlayerData Data_cs1 = Data.GetComponent <PlayerData>(); BankPlayerData Data_cs = Data_cs1.Button.GetComponent <BankPlayerData>(); Data_cs1.ColorCheck = true; Data.name = (1000 + Number).ToString(); Data_cs.PlayerDBID = PlayerListCheck.GetAllPlayerList[item].m_uiDBID; Data_cs.PlayerName = PlayerListCheck.GetAllPlayerList[item].m_strName; Data_cs1.Number = (byte)(Number % 2); Data_cs1.PlayerName.text = PlayerListCheck.GetAllPlayerList[item].m_strName; Data_cs1.PlayerLevel.text = PlayerListCheck.GetAllPlayerList[item].m_usLv.ToString(); Data_cs1.PlayerCash.text = PlayerListCheck.GetAllPlayerList[item].m_ui64OwnMoney.ToString(); if (VersionDef.InternationalLanguageSystem) { Data_cs1.ActiveHoshi.text = Font_Control.Instance.m_dicMsgStr[2504028] + Net.ActivityString(PlayerListCheck.GetAllPlayerList[item].m_byActivity); } else { Data_cs1.ActiveHoshi.text = "活躍度:" + Net.ActivityString(PlayerListCheck.GetAllPlayerList[item].m_byActivity); } FriendListDictionary.Add(PlayerListCheck.GetAllPlayerList[item].m_uiDBID, Data); Number++; } BusinessListScrollBar.value = 1; // PlayerDataTable.repositionNow = true; } }