What are Properties

They are smart variables! Let’s understand what this means.

When it says {get:set}, it means you can get the value and use an = sign to set the new value

When it says {get}, it means you can only grab the value.

Usually, these are established for you in monobehavior, but we can set these in our variable. To do this, we need to create a private variable (in this case, a bool) and it’s automatically set to false.

Then we can run a public bool called IsGameOver underneath this. It’s sort of like a function in the variable section.

What this does is it gets the isGameOver variable an sets the value to a new value.

So by running IsGameOver, I can get isGameOver and set it to true(the value).