using System.Collections; using System.Collections.Generic; using UnityEngine; public class AnimatorValue : MonoBehaviour { [SerializeField] private string _tag; private Animator _animator; private void Awake() { _animator = GetComponent(); } public void SetValue(float value) { _animator.SetFloat(_tag, value); } }