public void SetFriendDelete( body_SC_FRIEND_DELETE friendDelete) { if( m_SocialDlg == null) return; AsFriendTab friendPanel = m_SocialDlg.m_Panels[ ( int)AsSocialDlg.eSocialTab.Friend ].gameObject.GetComponent<AsFriendTab>(); friendPanel.RequestFirstPage(); }
void FriendDelete( byte[] _packet) { body_SC_FRIEND_DELETE friendDelete = new body_SC_FRIEND_DELETE(); friendDelete.PacketBytesToClass( _packet); string userName = AsUtil.GetRealString( System.Text.UTF8Encoding.UTF8.GetString( friendDelete.szCharName)); #if _SOCIAL_LOG_ Debug.Log( "FriendDelete userName: "+ userName); #endif AsSocialManager.Instance.SocialUI.RequestFirstPageByFriendList(); string strMsg = string.Format( AsTableManager.Instance.GetTbl_String(168), userName); AsChatManager.Instance.InsertChat( strMsg, eCHATTYPE.eCHATTYPE_SYSTEM); }