Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
更新 Controller.cs
Browse files Browse the repository at this point in the history
- 修复当平滑过渡、隐藏UI启用时,退出第一人称相机的体验性问题
  • Loading branch information
will258012 committed Mar 31, 2024
1 parent 2ff5f1d commit dbe92bd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions FPSCamera/Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public void StopFPSCam()
_camGame.AllSetting = _originalSetting;
if (!Config.G.SetBackCamera)
_camGame.Positioning = CamController.I.LocateAt(_camGame.Positioning);

_camGame.SetFullScreen(false);
if (_uiHidden)
Control.ShowUI();
_uiHidden = false;
_uiCamInfoPanel.enabled = false;

Expand Down Expand Up @@ -81,11 +81,9 @@ private void _EnableFPSCam()
private void _DisableFPSCam()
{
Log.Msg("FPS camera stopped");

_uiMainPanel.OnCamDeactivate();
Control.ShowUI();

Control.ShowCursor();
_camGame.SetFullScreen(false);
CamController.I.Restore();
_state = State.Idle;
}
Expand Down

0 comments on commit dbe92bd

Please sign in to comment.