切换主武器
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user