示例#1
0
 /// <summary>
 /// 进入下一个小关卡
 /// </summary>
 public void GoToNextSubLevel()
 {
     if (mCurSubLevel < mMaxSubLevel)
     {
         UpdateMissionLevel(mCurLevel, mCurSubLevel + 1);
         //不移动镜头的做法
         //SceneManager.LoadSceneAsync("Level" + mCurLevel + "-" + mCurSubLevel);
         //移动镜头的做法
         MessageBus.Send(new OnCameraMoveMsg(MissionData.GetCameraPosition(mCurLevel, mCurSubLevel), false));
         MessageBus.Send(new OnPlayerMoveMsg(MissionData.GetPlayerPosition(mCurLevel, mCurSubLevel), false));
     }
     else
     {
         //这里应该是跳转到某个大关卡过关完的连成星座并展示星座图的画面
         MessageBus.Send(new OnLevelCompleteMsg());
     }
 }
示例#2
0
 /// <summary>
 /// 获得Player初始位置
 /// </summary>
 public Vector3 GetPlayerStartPos()
 {
     return(MissionData.GetPlayerPosition(mCurLevel, mCurSubLevel));
 }