public void HandleBlock(WeaponItem weapon) { if (playerManager.isBlocking || playerManager.isInteracting) { return; } animatorHandler.PlayTargetAnimation("Block_Idle", false, true); EnableBlockingCollider(weapon); playerManager.isBlocking = true; }
public void ExitCheckpointMenu() { ExitPauseMenu(); EnableInteractableUI(); animatorHandler.PlayTargetAnimation("Kneeling Up", true); isResting = false; }
public void HandleRollingAndSprinting(float delta) { if (animatorHandler.anim.GetBool("isInteracting")) { return; } if (inputHandler.rollFlag) { moveDirection = cameraObject.forward * inputHandler.vertical; moveDirection += cameraObject.right * inputHandler.horizontal; if (inputHandler.moveAmount > 0) { animatorHandler.EnableIsInvulnerable(); animatorHandler.PlayTargetAnimation("Rolling", true); moveDirection.y = 0; Quaternion rollRotation = Quaternion.LookRotation(moveDirection); myTransform.rotation = rollRotation; } else { animatorHandler.PlayTargetAnimation("Backstep", true); } } }
public void UseConsumable(ConsumableItem consumable) { weaponSlotManager.UnloadWeaponOnSlot(WeaponSlotID.RightHandSlot); consumableSlot.LoadConsumableModel(consumable); animator.PlayTargetAnimation(consumable.useAnimation, true); }