Hey!
So I've got a World with the following relevant variable and method:
now I try to access this variable from an actor with either
(I created the method setNewRound() specifically for this purpose)
or
but neither of those approaches seem to work.
They both get an "cannot find variable/method" error. How do you do it?
int newRound; public void setNewRound(){ newRound = 1; }
getWorld().setNewRound();
getWorld().newWorld = 1;