Is there a possibility to get The world the actor lives in, because I want to change the world, but the actor has a method to check one world, but it couldnt be cast in the other World
There is an actor 1. the actor 1 is in world one. At some point of the game the world changes to World 2. Now all method in the actor 1 that refference to world 1 will crash the game. How could i make a method, that only activates while the actor is in world one, becaus if i couldnt i will have to make another actor. I want to try to let it only be one actor.
A method like
if(actorIsInWorld(world 1 ))
or something like that