public void LoadScene(int nSceneID, float fX, float fY, float fZ, string strData) { mbLoadedScene = true; mnScene = nSceneID; mTitleData = strData; mUIModule.CloseAllUI(); NFUILoading xUILoading = mUIModule.ShowUI <NFUILoading>(); xUILoading.LoadLevel(nSceneID, new Vector3(fX, fY, fZ)); if (!mhtObject.ContainsKey(mLoginModule.mRoleID)) { return; } }
public void LoadSceneEnd(int nSceneID) { if (!mbInitSend) { mbInitSend = true; //NFNetController.Instance.mxNetSender.RequireEnterGameFinish (NFNetController.Instance.xMainRoleID); } if (false == mbLoadedScene) { return; } BeforeLoadSceneEnd(nSceneID); mbLoadedScene = false; //主角贴地,出生点 /* * GameObject xGameObject = (GameObject)mhtObject[mLoginModule.mRoleID]; * if (null != xGameObject) * { * xGameObject.transform.position = mvSceneBornPos; * //xGameObject.GetComponent<NFCStateMachineMng> ().ChangeState (NFAnimaStateType.Idle); * } */ NFMsg.ESceneType nType = (NFMsg.ESceneType)mElementModule.QueryPropertyInt(nSceneID.ToString(), NFrame.Scene.Type); if (nType == NFMsg.ESceneType.NormalScene) { mUIModule.CloseAllUI(); mUIModule.ShowUI <NFUIMain>(); mUIModule.ShowUI <NFUIEstateBar>(); mUIModule.ShowUI <NFUIJoystick>(); } Debug.Log("LoadSceneEnd: " + nSceneID + " " + nType); }