top of page

3/11/20 - Master class

Portfolio_Peice_24.JPG

I spent today I created a static master class, that accesses all the player's components so that the other mechanics can access player without having to duplicating code per class. By making the class static you can access it without having to use 'GetComponent<>' or 'FindObjectOfType<>'. This is similar to the singletons class I used for the scene transition manager.

© 2020 by Max Oates. Proudly created with Wix.com

bottom of page