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); }
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); //重置主角坐标到出生点 }
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; }