Fix: cleanup and minor perf improvements
This commit is contained in:
+1
-7
@@ -107,7 +107,7 @@ namespace Unheimlich.Features.DetectiveBoard
|
||||
arms.HideArms(3f);
|
||||
}
|
||||
|
||||
InputManager.SetContext(InputManager.InputContext.Listening);
|
||||
InputManager.SetContext(InputManager.InputContext.DetectiveBoard);
|
||||
|
||||
if (_cameraHeadBob != null)
|
||||
{
|
||||
@@ -119,9 +119,6 @@ namespace Unheimlich.Features.DetectiveBoard
|
||||
CrosshairController.Instance.Hide();
|
||||
}
|
||||
|
||||
Cursor.lockState = CursorLockMode.None;
|
||||
Cursor.visible = true;
|
||||
|
||||
var cameraPan = PlayerController.Instance.CameraPanController;
|
||||
var originalSettings = cameraPan.Settings;
|
||||
|
||||
@@ -200,9 +197,6 @@ namespace Unheimlich.Features.DetectiveBoard
|
||||
{
|
||||
CrosshairController.Instance.Show();
|
||||
}
|
||||
|
||||
Cursor.lockState = CursorLockMode.Locked;
|
||||
Cursor.visible = false;
|
||||
}
|
||||
|
||||
private void RestoreHeadBob()
|
||||
|
||||
Reference in New Issue
Block a user