Utility Helpers

Utility helpers are static classes that can’t inherit but can be accessed anywhere. They can be both variables and methods inside this class.

The only difference from regular classes is all methods/variables need to be declared static.

Let’s add in 2 functions to this class:

Now I can create an object from a different script

I can also pass in a parameter and it can affect any gameobject or this gameobject in my scene.