using System.Collections; using System.Collections.Generic; using UnityEngine; public class AnimatorSpeed : MonoBehaviour { [Range(0, 5)] public float Speed; void Start () { } // Update is called once per frame void Update () { gameObject.GetComponent().speed = Speed; } }