Using ES6 Modules in Online Editor

Please look at this thread: Other-script referal (Global variables)

If you have used Unity, it’s the same principle. Get a reference to the gameObject/entity and get the script from it to access the public variables and functions.