@sampattuzzi how are we able to access the other portals spawn point when it isn’t public?
Because we are accessing from within a Portal script. Public and private work between classes not instances.
1 Like
So your saying that a class can access any part of itself on another game object regardless of its protection level?
That is correct.
So if you have two Gameobjects with a Fu() component on them, each Fu() can see the private variables of the other.
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.