Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 740 Bytes

README.md

File metadata and controls

14 lines (7 loc) · 740 Bytes

grid-game-manager-unity

Example of using the Grid system / Preload Scene as a game manager in Unity 5.x.

Note that any Scene can still be loaded from the Unity editor. You need to set the preload scene via the Unity editor File -> Scene Autoload -> Select Master Scene

This 'game' is nothing more than a moving square and a score. Once the square reaches the goal, the next scene is loaded whilst the global state (score & level progression) is maintained.

Based on examples shown here:

https://stackoverflow.com/questions/35890932/unity-game-manager-script-works-only-one-time/35891919#35891919

https://answers.unity.com/questions/663351/design-advice-power-up-system-static-variables.html?childToView=663681#answer-663681