In the Portal.cs while looping through the portals we use portal.destination to check each portal’s destination enum variable.
How does that work when destination is a private variable?
In the Portal.cs while looping through the portals we use portal.destination to check each portal’s destination enum variable.
How does that work when destination is a private variable?
It just happens that since the variable is in the same class (Portal), it can see all the variables in another instance of Portal (yep, even the private ones).
Thank you for the clarity!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.