Technically, if you use getScene(…) to get your scene object, you should be able to just call the function on it normally cor.myFunction(...)
.
Without knowing the extent of what you’re trying to do, for me this is a weird way to use scenes. So one thing you could do is in your MyScene object add a listener to an ‘increment’ event, then outside of it you can go cor.emit('increment');
.