Game Jam Guide‎ > ‎

Unity hints and tips

Accessing other components

When you add a Script component to a game object, how do you reference other components which are on the same game object?

Creating a global game object

You probably want one master game object which controls the overall state of your game.

How to initialise variables

If you initialise a variable at the point at which it is defined, its starting value can be overridden by the value set in the inspector.

If you initialise a variable in the Start() method, it will always start with that value.