Example #1
0
 public override void DoChecks()
 {
     base.DoChecks();
     _isGrounded             = SwordCharacter.CheckIfTouchingGround();
     _isGrabbable            = SwordCharacter.CheckIfIsGrabbable();
     _isTouchingWallAbove    = SwordCharacter.CheckIfTouchingWallAbove();
     _isTouchingGrabbleAbove = SwordCharacter.CheckIfTouchingGrabbableAbove();
 }
Example #2
0
    public override void DoChecks()
    {
        base.DoChecks();
        IsGrounded               = SwordCharacter.CheckIfTouchingGround();
        IsTouchingWall           = SwordCharacter.CheckIfTouchingWall();
        IsTouchingWallAbove      = SwordCharacter.CheckIfTouchingWallAbove();
        IsTouchingGrabbable      = SwordCharacter.CheckIfIsGrabbable();
        IsTouchingGrabbableAbove = SwordCharacter.CheckIfTouchingGrabbableAbove();

        if ((IsTouchingWall || IsTouchingGrabbable) && !IsTouchingWallAbove && !IsTouchingGrabbableAbove)
        {
            SwordCharacter.LedgeCLimbState.SetDetectedPosition(SwordCharacter.transform.position);
        }
    }