using System.Collections; using System.Collections.Generic; using UnityEngine; public class changeSpeeedButton : MonoBehaviour { Animator anime; public float speed; // Start is called before the first frame update void Start() { anime = GetComponent(); anime.SetFloat("speed", speed); } }