refactor(WatchMode): 将鼠标逻辑修改移动到PlayerWatchModeController当中

This commit is contained in:
2025-10-18 09:20:37 +08:00
parent da7ba72698
commit a86107b79d
2 changed files with 10 additions and 10 deletions

View File

@@ -57,12 +57,21 @@ namespace Gameplay.Player
{
case WatchMode.Normal:
SetSeeLines(false);
inputManager.SetCursorState(false, CursorLockMode.Locked);
inputManager.SetInputForLook(true);
inputManager.SetInputForMove(true);
break;
case WatchMode.Inside:
SetSeeLines(false);
inputManager.SetCursorState(true, CursorLockMode.Confined);
inputManager.SetInputForLook(false);
inputManager.SetInputForMove(false);
break;
case WatchMode.Outside:
SetSeeLines(true);
inputManager.SetCursorState(false, CursorLockMode.Locked);
inputManager.SetInputForLook(true);
inputManager.SetInputForMove(true);
break;
default:
throw new ArgumentOutOfRangeException();