protected override void updateRotation() { if (grabMechanics.getIsGrabbing()) { return; } base.updateRotation(); }
// Update is called once per frame void Update() { anim.SetFloat("Speed", walkMechanics.getCurrentSpeedRatio()); anim.SetBool("isGrabbing", grabMechanics.getIsGrabbing()); anim.SetBool("isClimbing", climbMechanics.getIsClimbing()); }