Game Manager - HealthStart-Monstralia/Monstralia GitHub Wiki
Basic Overview
Class: GameManager
Derivatives: Monobehaviour
Singleton, DontDestroyOnLoad
Purpose
To store and load game data while giving consistent global functionalities that all mini games can use.
Functions
Set and retrieve current level for a minigame
Set and retrieve current stars for a minigame
Set and retrieve tutorial status for a minigame
Set and retrieve the current island section
Set and retrieve chosen monster.
Set and retrieve visited island sections
Create a countdown
Unlock a sticker for the current minigame
Create an end screen for the end of a game
Interact with Review Game Manager for reviews
Data
Levels for each game
Stars for each game
Stickers player has earned
Stickers player has placed in the book
Type of monster chosen by player
Number of games completed
Current island section
Visited areas of the island
Notes
When referencing Game Manager through GameManager.Instance, try to not put this in a class's Awake function as GameManager.Instance may be null until it completes its awake function.