Example #1
0
        private void EGMI_ACK_ENTER_GAME_FINISH(NFMsg.MsgBase xMsg)
        {
            NFMsg.ReqAckEnterGameSuccess xData = new NFMsg.ReqAckEnterGameSuccess();
            xData = mxSerializer.Deserialize(new MemoryStream(xMsg.msg_data), null, typeof(NFMsg.ReqAckEnterGameSuccess)) as NFMsg.ReqAckEnterGameSuccess;

            // 去掉遮场景的ui
            //NFRender.Instance.LoadScene(xData.scene_id, xData.x, xData.y, xData.z);
        }
Example #2
0
        public void RequireEnterGameFinish(NFrame.NFGUID objectID)
        {
            //only use in the first time when player enter game world
            NFMsg.ReqAckEnterGameSuccess xData = new NFMsg.ReqAckEnterGameSuccess();

            mxBody.SetLength(0);
            mxSerializer.Serialize(mxBody, xData);

            SendMsg(objectID, NFMsg.EGameMsgID.EGMI_REQ_ENTER_GAME_FINISH, mxBody);
        }
Example #3
0
        public void RequireEnterGameFinish()
        {
            //only use in the first time when player enter game world
            NFMsg.ReqAckEnterGameSuccess xData = new NFMsg.ReqAckEnterGameSuccess();
            xData.Arg = 1;

            mxBody.SetLength(0);
            xData.WriteTo(mxBody);

            SendMsg((int)NFMsg.EGameMsgID.ReqEnterGameFinish, mxBody);
        }
        private void EGMI_ACK_ENTER_GAME_FINISH(int id, MemoryStream stream)
        {
            NFMsg.MsgBase xMsg = NFMsg.MsgBase.Parser.ParseFrom(stream);

            NFMsg.ReqAckEnterGameSuccess xData = NFMsg.ReqAckEnterGameSuccess.Parser.ParseFrom(xMsg.MsgData);

            Debug.Log("Enter game finished: " + xData.ToString());

            // 去掉遮场景的ui
            //主角,等怪物enable,并且充值在相应的position
            //mSceneModule.LoadScene(xData.scene_id, xData.x, xData.y, xData.z);
        }