animation controller parameter setting from script not working.

Hi guys,I need some help,I’m unable to set my animator controller parameter from script,I have the code below but the anienter code heremation parameter doesn’t change when I play the animation.

using UnityEngine;
using System.Collections;

public class move : MonoBehaviour {

	Animator anim;
	
	void Start () 
	{
		anim = GetComponent<Animator> ();
	}
	void update()
	{
		float move = Input.GetAxis ("Vertical");
		anim.SetFloat ("Speed",move);
	}
}

move is a string, not a float. A float is a number whereas a string is text. Is move defined variable? (Public/private float move) a variable? If it is, make sure it’s a float variable and that you show it in your question. Also try “anim = gameObject.GetComponent ();”