public void LoadScene(int nSceneID, float fX, float fY, float fZ, string strData) { mbLoadedScene = true; mnScene = nSceneID; NFUILoading xUILoading = mUIModule.ShowUI <NFUILoading>(); xUILoading.LoadLevel(nSceneID, new Vector3(fX, fY, fZ)); if (!mhtObject.ContainsKey(mLoginModule.mRoleID)) { return; } }
private void OnSwapScene(UInt16 id, MemoryStream stream) { NFMsg.MsgBase xMsg = NFMsg.MsgBase.Parser.ParseFrom(stream); NFMsg.ReqAckSwapScene xData = NFMsg.ReqAckSwapScene.Parser.ParseFrom(xMsg.msg_data); mUIModule.ShowUI <UIMain>(); NFDataList var = new NFDataList(); NFVector3 v = new NFVector3(xData.x, xData.y, xData.z); var.AddInt(xData.scene_id); var.AddVector3(v); mEventModule.DoEvent((int)Event.SwapScene, var); }
private void OnSwapScene(UInt16 id, MemoryStream stream) { NFMsg.MsgBase xMsg = new NFMsg.MsgBase(); xMsg = Serializer.Deserialize <NFMsg.MsgBase>(stream); NFMsg.ReqAckSwapScene xData = new NFMsg.ReqAckSwapScene(); xData = Serializer.Deserialize <NFMsg.ReqAckSwapScene>(new MemoryStream(xMsg.msg_data)); mUIModule.ShowUI <UIMain>(); NFDataList var = new NFDataList(); NFVector3 v = new NFVector3(xData.x, xData.y, xData.z); var.AddInt(xData.scene_id); var.AddVector3(v); mEventModule.DoEvent((int)Event.SwapScene, var); }