public static void Send(int mailId)
        {
            CGReadMail package = new CGReadMail();

            package.mailId = mailId;

            NetHandler.OnSend(602, NetHandler.Serialize(package));
        }
Пример #2
0
        /*
         * 读取一封邮件
         */
        public IEnumerator ReadMail(int EMailId)
        {
            var packet = new KBEngine.PacketHolder();
            var read   = CGReadMail.CreateBuilder();

            read.MailId = EMailId;
            yield return(StartCoroutine(KBEngine.Bundle.sendSimple(this, read, packet)));

            readmail = (packet.packet.protoBody as GCReadMail);
        }