public void Init( body_SC_PARTY_JOIN_REQUEST_NOTIFY data) { m_JoinRequestNotify = data; if ( AsHudDlgMgr.Instance.IsOpenCashStore == true) // if open cash store send refuse { AsPartySender.SendPartyJoinRequestAccept( m_JoinRequestNotify.nCharUniqKey, false); GameObject.DestroyImmediate( gameObject); } else { title.Text = AsTableManager.Instance.GetTbl_String(1730); string userName = Encoding.UTF8.GetString( m_JoinRequestNotify.szCharName); message.Text = string.Format( AsTableManager.Instance.GetTbl_String(2008), m_JoinRequestNotify.nLevel, AsUtil.GetClassName( ( (eCLASS) m_JoinRequestNotify.eClass)),m_JoinRequestNotify.nCurItemRankPoint, AsUtil.GetRealString( userName)); cancelBtn.Text = AsTableManager.Instance.GetTbl_String(1151); okBtn.Text = AsTableManager.Instance.GetTbl_String(1152); } }
private void PartyJoinRequestNotify( byte[] _packet) { #if _PARTY_LOG_ Debug.Log( "PartyJoinRequestNotify"); #endif body_SC_PARTY_JOIN_REQUEST_NOTIFY joinRequestNotify = new body_SC_PARTY_JOIN_REQUEST_NOTIFY(); joinRequestNotify.PacketBytesToClass( _packet); AsPartyManager.Instance.SetJoinRequestNotify(joinRequestNotify); }
public void SetJoinRequestNotify( body_SC_PARTY_JOIN_REQUEST_NOTIFY joinRequestNotify) { GameObject go = Instantiate( Resources.Load( "UI/AsGUI/PartyMatching/GUI_PartyJoinRequestDlg")) as GameObject; AsPartyJoinRequestDlg partyJoinRequestDlg = go.GetComponent<AsPartyJoinRequestDlg>(); Vector3 pos = go.transform.position; pos.z += JoinRequestCount * -0.5f; go.transform.position = pos; partyJoinRequestDlg.Init( joinRequestNotify); JoinRequestCount++; }