The method is Private, How is it accessing the other class

In the Block script, DestroyBlock() is a private method
When we use FindObjectOfType, how is it having access to the GameStatus script?

the method you’re in maybe private but findobjectoftype is a public one, and gamestatus is within your app, and probably has no namespace, so as a result generically available to all your scripts in your game


okay, got it, thanks

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.