切换主武器

This commit is contained in:
SoulliesOfficial
2025-12-23 19:47:06 -05:00
parent eaa688c7a9
commit 2a2aa728d5
275 changed files with 12579 additions and 2770 deletions

View File

@@ -230,19 +230,19 @@ namespace Cielonos.MainGame.Characters
}
};
inputActions.Player.SwitchMainWeapon.performed += ctx =>
inputActions.Player.SwitchPreviousMainWeapon.performed += ctx =>
{
if (ctx.performed && isCursorLocked.Value)
{
operation.SwitchMainWeapon(ctx.ReadValue<float>());
operation.SwitchMainWeapon(-1);
}
};
inputActions.Player.FastSwitchMainWeapon.performed += ctx =>
inputActions.Player.SwitchNextMainWeapon.performed += ctx =>
{
if (ctx.performed && isCursorLocked.Value)
{
operation.FastSwitchMainWeapon();
operation.SwitchMainWeapon(1);
}
};