Пример #1
0
        private void EGMI_ACK_SWAP_SCENE(NFMsg.MsgBase xMsg)
        {
            NFMsg.ReqAckSwapScene xData = new NFMsg.ReqAckSwapScene();
            xData = mxSerializer.Deserialize(new MemoryStream(xMsg.msg_data), null, typeof(NFMsg.ReqAckSwapScene)) as NFMsg.ReqAckSwapScene;

            Debug.Log("SWAP_SCENE: " + xData.scene_id);

            NFMsg.AckMiningTitle xTileData = new NFMsg.AckMiningTitle();
            if (null != xData.data && xData.data.Length > 0)
            {
                xTileData = mxSerializer.Deserialize(new MemoryStream(System.Text.Encoding.Default.GetBytes(xData.data)), null, typeof(NFMsg.AckMiningTitle)) as NFMsg.AckMiningTitle;
            }
            NFRender.Instance.LoadScene(xData.scene_id, xData.x, xData.y, xData.z, xTileData);
        }
Пример #2
0
        private void EGMI_ACK_SWAP_SCENE(NFMsg.MsgBase xMsg)
        {
            NFMsg.ReqAckSwapScene xData = new NFMsg.ReqAckSwapScene();
            xData = mxSerializer.Deserialize(new MemoryStream(xMsg.msg_data), null, typeof(NFMsg.ReqAckSwapScene)) as NFMsg.ReqAckSwapScene;

            Debug.Log("SWAP_SCENE: " + xData.scene_id + " " + xData.x + "," + xData.y + "," + xData.z);

            NFMsg.AckMiningTitle xTileData = new NFMsg.AckMiningTitle();
            if (null != xData.data && xData.data.Length > 0)
            {
                xTileData = mxSerializer.Deserialize(new MemoryStream(xData.data), null, typeof(NFMsg.AckMiningTitle)) as NFMsg.AckMiningTitle;
            }

            NFRender.Instance.LoadScene(xData.scene_id, xData.x, xData.y, xData.z, xTileData);
            //重置主角坐标到出生点
        }
Пример #3
0
 private void EGEC_ACK_MINING_TITLE(NFMsg.MsgBase xMsg)
 {
     NFMsg.AckMiningTitle xData = new NFMsg.AckMiningTitle();
     xData = mxSerializer.Deserialize(new MemoryStream(xMsg.msg_data), null, typeof(NFMsg.AckMiningTitle)) as NFMsg.AckMiningTitle;
 }