how how to update a float from other script unity code example
Example: unity float from another script
public GameObject ScriptHolder;
public float Afloat;
//retrieve float every frame
void Update()
{
Afloat = ScriptHolder.GetComponent<Script>().WantedFloat;
}