get float from others script 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;