Managers
Game Manager System
Overview
The Game Manager system is responsible for managing the overall game functionality, including application lifecycle, and input events. This system ensures that the game operates smoothly by handling essential tasks such as initializing settings, and cleaning up resources when the application quits.
Classes
GameManager
Manages the overall game functionality, including application lifecycle. This class inherits from SingleSingleton<GameManager> to ensure that only one instance of the GameManager exists. It handles the initialization of the EventSystem, and cleans up resources when the application quits.
Key Responsibilities:
Event System Management: Manages the EventSystem used for handling input events in the game.
Application Lifecycle Management: Handles the cleanup of application resources when the game is about to quit.
Example Use Cases
Managing Input Events: The GameManager class initializes and manages the EventSystem used for handling input events in the game. This ensures that all input events are processed correctly and efficiently.
Cleaning Up Resources: The GameManager class handles the cleanup of application resources when the game is about to quit. This ensures that all resources are properly released and the application exits gracefully.
By using the Game Manager system, you can manage the essential functionalities of the Candy Merge game, such as input events, and application lifecycle, providing a smooth and enjoyable gameplay experience for players.
Last updated