public float enableInputAtProgress = 0.8f; // The normalized interaction progress after which the character is able to move again protected override void Update() { // Disable input when in interaction if (disableInputInInteraction && interactionSystem != null && (interactionSystem.inInteraction || interactionSystem.IsPaused())) { // Get the least interaction progress float progress = interactionSystem.GetMinActiveProgress(); // Keep the character in place if (progress > 0f && progress < enableInputAtProgress) { state.move = Vector3.zero; state.jump = false; return; } } // Pass on the FixedUpdate call base.Update(); }