Here is a screenshot of the "VariableManager". This Statemachine is made with "Playmaker", a plugin for Unity that takes the typing out of prototyping/coding. If you have questions about how this statemachine works, please leave a comment and I will try to answer it.
This statemachine looks pretty simple, but hidden under the "Init Game Vars" and "SetupBrickTypes" nodes are a plethora of variables that are being used by the game. The Statemachine "gets stuck" at the last node which just updates all variables "every frame". The different GUI elements then look at these variables to get their information/data from.
Here is a screenshot of the "VariableManager". This Statemachine is made with "Playmaker", a plugin for Unity that takes the typing out of prototyping/coding. If you have questions about how this statemachine works, please leave a comment and I will try to answer it.
This statemachine looks pretty simple, but hidden under the "Init Game Vars" and "SetupBrickTypes" nodes are a plethora of variables that are being used by the game. The Statemachine "gets stuck" at the last node which just updates all variables "every frame". The different GUI elements then look at these variables to get their information/data from.