Example #1
0
    protected override void FixedUpdate()
    {
        GetAnimator.SetBool("IsGround", groundChecker.IsGround);
        GetAnimator.SetFloat("VelocityY", Rigid.velocity.y);

        base.FixedUpdate();
    }
Example #2
0
    private void FixedUpdate()
    {
        isGround = CheckGround();
        GetAnimator.SetBool("IsGround", isGround);

        Move(horizontal);

        float vY = Rigid.velocity.y;

        GetAnimator.SetFloat("VelocityY", vY);
    }
Example #3
0
 private void RpcTurnAnimation(float value)
 {
     GetAnimator.SetFloat(_animatorTurn, value);
 }
Example #4
0
 private void RpcMoveAnimation(Vector3 direction)
 {
     GetAnimator.SetFloat(_animatorMoveForward, direction.z);
     GetAnimator.SetFloat(_animatorMoveRight, direction.x);
 }