public void ContinueBtn(GameObject pausePage) //继续按钮 { Time.timeScale = 1; //恢复游戏正常速度 pausePage.SetActive(false); //关闭暂停页 gCtrl.gamePause = false; Cursor.lockState = CursorLockMode.Locked; //隐藏指针 Cursor.visible = false; camCtrl.SetSpeed((int)mSpeedSlider.value); //根据设置改变视角移动速度 }