unity change float from another script 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;
}