Pass data from

Pass data from
0.0 0


I have a function that generates float in the main .java file. I would like to pass this into my scene and set a variable. It’s kind of messy, I wouldn’t recommend people copy this style, but it’s a quick fix and I’m almost set. What code will do this?


Or perhaps a global variable that I can set in the java file that the particular layer that needs it can pull. I have this going on iOS side using, but I’m a lot less experienced on Android.