Would 2 variables not make more sense?

Hi guys just finished this lecture and thought to my self, “What if I need to move to a portal that hasn’t got the same destination as the one I’m at?”. Would it not make sense to have 2 variables? A myDestinationIdentifier and a destinationDestinationIdentifier.

Yes, that would work for that situation.

Yeah, I did it this way as well. I got very confused as to how each portal know its own identifer vs where it was going to ‘send’ the player.