예제 #1
0
    public override void DoChecks()
    {
        base.DoChecks();
        _isGrounded               = SwordCharacter.CheckIfTouchingGround();
        _isTouchingWall           = SwordCharacter.CheckIfTouchingWall();
        _isTouchingGrabbable      = SwordCharacter.CheckIfIsGrabbable();
        _isTouchingWallBack       = SwordCharacter.CheckIfTouchingWallBack();
        _isTouchingWallAbove      = SwordCharacter.CheckIfTouchingWallAbove();
        _isTouchingGrabbableAbove = SwordCharacter.CheckIfTouchingGrabbableAbove();

        if ((_isTouchingWall || _isTouchingGrabbable) && !_isTouchingWallAbove && !_isTouchingGrabbableAbove)
        {
            SwordCharacter.LedgeCLimbState.SetDetectedPosition(SwordCharacter.transform.position);
        }
    }