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:

1 Like

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.

1 Like

OMG thank you for posting this!! I knew I was missing something obvious but I couldn’t understand what he was trying to get us to do. I don’t mind the system, I think it works great, I just think it could have been explained better.

1 Like

Ditto - yeah I think this is a great approach but the word “destination” threw me off and had me doing a lot of extra work.

Privacy & Terms