// Start is called before the first frame update void Start() { player = FindObjectOfType <PlayerInputBody>().gameObject; playerMove = player.GetComponent <MovementBody>(); mSlider = GetComponent <Slider>(); }