how to reference a gameobject float in unity code example
Example: get float from others script
var class1 = GameObject.Find("MyObjectScript").GetComponent<MyClass1>();
class1.myfloat = 3;
var class1 = GameObject.Find("MyObjectScript").GetComponent<MyClass1>();
class1.myfloat = 3;