This commit is contained in:
Max_Divizion
2025-01-21 16:18:00 +03:00
parent d37b2ce1b8
commit 7ad7cd5566
36 changed files with 5105 additions and 11 deletions

View File

@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
public class AnimationHandOnInout : MonoBehaviour
{
public InputActionProperty pinchAnimationAction;
public InputActionProperty gripAnimationAction;
public Animator handAnimator;
void Start()
{
}
void Update()
{
float triggerValue = pinchAnimationAction.action.ReadValue<float>();
handAnimator.SetFloat("Trigger", triggerValue);
float gripValue = gripAnimationAction.action.ReadValue<float>();
handAnimator.SetFloat("Grip", gripValue);
}
}