private void OnS2C_ResponseMailContent(ProtoBuf.IExtensible msg) { UnityEngine.Debug.Log("SystemProtoBufController------>OnS2C_ResponseMailContent"); clientmsg.SendMailContent mailcontent = msg as clientmsg.SendMailContent; Hashtable hashtable = new Hashtable(); hashtable["protomsg"] = mailcontent; AWEvent evt = new AWEvent(AWEvent.RESPONSE_MAILCONTENT, hashtable); this.sfs.DispatchEvent(evt); }
void OnS2C_ResponseMailContent(BaseEvent evt) { Debug.Log("OnS2C_ResponseMailContent"); clientmsg.SendMailContent responsemailcontent = (clientmsg.SendMailContent)evt.Params["protomsg"]; int count = responsemailcontent.mail_contents.Count; if (count > 0) { for (int i = 0; i < count; i++) { // NGUIDebug.Log("maild.... " + responsemailcontent.mail_contents[i].mailid.ToString()); } } }