top of page

3/11/20 - Master class

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.
bottom of page