using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.InputSystem;
|
|
public class AnimateHandOnInput : MonoBehaviour
|
{
|
public InputActionProperty pinchAnimationAction;
|
|
public Animator HandAnimator;
|
|
|
// Update is called once per frame
|
void Update()
|
{
|
float triggerValue = pinchAnimationAction.action.ReadValue<float>();
|
HandAnimator.SetFloat("Grip", triggerValue);
|
}
|
}
|