예제 #1
0
    public void Swim(bool isSwimming = false)
    {
        _isSwimming = isSwimming;

        if (charAnimator != null && charAnimator.isActiveAndEnabled)
        {
            charAnimator.SetBool("Swim", _isSwimming);
        }

        if (playerCont != null)
        {
            playerCont.Swim(_isSwimming);
        }
    }