コード例 #1
0
ファイル: PlayerAnimator.cs プロジェクト: Lunastryke/Glory
    // Update is called once per frame
    void Update()
    {
        animator.SetBool("Jumping", !playerController.GetOnGround());

        if (playerBuff != null)
        {
            if (IsSliding())
            {
                playerBuff.SetToPosition(
                    new Vector3(transform.position.x, transform.position.y - 0.65f));
            }
            else
            {
                playerBuff.SetToPosition(transform.position);
            }
        }
    }