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

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

        Move(horizontal);

        float vY = Rigid.velocity.y;

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