public void OnDisconnected(NFDataList valueList) { if (mKey != null) { //reconnect mAccount = ""; mKey = ""; mServerID = 0; mWorldServerList.Clear(); mGameServerList.Clear(); mRoleID = new NFGUID(); mRoleName = ""; mRoleList.Clear(); //Clear all players and UI objects NFDataList xDataList = mKernelModule.GetObjectList(); for (int i = 0; i < xDataList.Count(); ++i) { mKernelModule.DestroyObject(xDataList.ObjectVal(i)); } mUIModule.CloseAllUI(); mUIModule.ShowUI <NFUILogin>(); } }
private void EGMI_ACK_ENTER_GAME(UInt16 id, MemoryStream stream) { NFMsg.MsgBase xMsg = NFMsg.MsgBase.Parser.ParseFrom(stream); NFMsg.AckEventResult xData = NFMsg.AckEventResult.Parser.ParseFrom(xMsg.msg_data); Debug.Log("EGMI_ACK_ENTER_GAME " + xData.event_code.ToString()); //mSceneModule.LoadScene((int)xData.event_code); //可以播放过图动画场景 mUIModule.CloseAllUI(); mUIModule.ShowUI <NFUIMain>(); }