21 lines
529 B
C#
21 lines
529 B
C#
using UnityEngine;
|
|
|
|
namespace UFMTESTING1
|
|
{
|
|
public class ARSAnimator : ARSBehaviour
|
|
{
|
|
[Header("Animator Settings")]
|
|
[SerializeField] private Animator _animator;
|
|
[Tooltip("Parameter name in the animator to be controlled")]
|
|
[SerializeField] string _floatParameterName = "ARS";
|
|
|
|
public override void OnARSUpdate(float value01)
|
|
{
|
|
if (_animator != null)
|
|
{
|
|
_animator.SetFloat(_floatParameterName, value01);
|
|
}
|
|
}
|
|
}
|
|
}
|