コード例 #1
0
ファイル: BaseCharacter.cs プロジェクト: aimozs/Scripts
    public void Swim(bool isSwimming = false)
    {
        _isSwimming = isSwimming;

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

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