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