//读邮件ack.. private static void msg_SC_READ_MAIL_ACK(int iMsgID, ref CMessage msg) { CliProto.SC_READ_MAIL_ACK refMsg = (CliProto.SC_READ_MAIL_ACK)msg; UInt64 uuMailID = refMsg.m_MailID; uint uiTime = 100; sdMailMgr.Instance.OnReadMail(uuMailID, uiTime); sdMailMgr.Instance.ResetMailNeedFlash(); GameObject wnd = sdGameLevel.instance.NGUIRoot; if (wnd) { sdUIMailWnd uiWnd = wnd.GetComponentInChildren <sdUIMailWnd>(); if (uiWnd) { uiWnd.RefreshMailList(); } sdUIMailDetailWnd uiWnd2 = wnd.GetComponentInChildren <sdUIMailDetailWnd>(); if (uiWnd2) { uiWnd2.ShowMailDetailWndUI(); } } }
//更新邮件通知.. private static void msg_SC_UPDATE_MAIL_NTF(int iMsgID, ref CMessage msg) { CliProto.SC_UPDATE_MAIL_NTF refMsg = (CliProto.SC_UPDATE_MAIL_NTF)msg; sdMailMgr.Instance.UpdateMailList(refMsg.m_List); sdMailMgr.Instance.ResetMailNeedFlash(); GameObject wnd = sdGameLevel.instance.NGUIRoot; if (wnd) { sdUIMailWnd uiWnd = wnd.GetComponentInChildren <sdUIMailWnd>(); if (uiWnd) { uiWnd.RefreshMailList(); } sdUIMailDetailWnd uiWnd2 = wnd.GetComponentInChildren <sdUIMailDetailWnd>(); if (uiWnd2) { uiWnd2.ShowMailDetailWndUI(); } } }