The thing that was confusing me about this lecture

…is that effectively you’re matching A-A or B-B. So each portal is paired to one of the same name.

That confused me in the challenge and in the solution.

For me it would be more intuitive to have a start/end portal identifier. But that would need a different implementation, possibly not using a foreach loop at all.

I wonder if perhaps a minor amend to the lecture could be worthwhile, to clarify this a bit.

But maybe I am just being a bit of a donut :slight_smile:

Many people have chosen to go with a 2 enum solution of a source and destination. This allows for creative tricks like one way portals (before loading the new scene, check to see if there is a destination) or to a different point in the scene.