[Script(ScriptRole.View)] public class DinoView : MonoBehaviour { DinoLogic _logic; Animator _animator; int _runPowerHash = Animator.StringToHash("RunPower"); void Awake () { _logic = GetComponent<DinoLogic>(); _animator = GetComponent<Animator>(); } void Update () { _animator.SetFloat(_runPowerHash, _logic.RunPower.LastValue); } }