void OnTriggerStay(Collider other) { if (other.gameObject.tag == "Player") { VikingControlsScript.FreezePlayerMovement(true); } }
void PreventMovementByAnimation() { if (VikingControlsScript.IsTryingToMove && !IsAnimationInterruptible()) { VikingControlsScript.FreezePlayerMovement(true); } else if (IsInteractionInputsEnable()) { VikingControlsScript.FreezePlayerMovement(false); } }