fixed player in bot fights and their scaled time features (player not time scaled). Now player can join to fights for justice.

This commit is contained in:
2022-05-20 02:22:22 +07:00
parent 7db8dbcfcf
commit 9faeccdae3
20 changed files with 176 additions and 224 deletions

View File

@ -31,8 +31,8 @@ namespace Animators.Leonid_Animator.Player
private void Update()
{
_cameraHandler.TargetPosition(Time.deltaTime);
_cameraHandler.HandleCameraRotation(Time.deltaTime, mouseX, mouseY);
_cameraHandler.TargetPosition(Time.unscaledDeltaTime);
_cameraHandler.HandleCameraRotation(Time.unscaledDeltaTime, mouseX, mouseY);
}
private void OnEnable()
@ -48,7 +48,7 @@ namespace Animators.Leonid_Animator.Player
context => crouchPressed = true;
_inputActions.PlayerActions.Jump.performed +=
context => jumpPressed = true;
_inputActions.PlayerActions.Fire.performed +=
_inputActions.PlayerActions.Fire.started +=
context => firePressed = true;
_inputActions.PlayerActions.Fire.canceled +=
context => firePressed = false;