Unity and Flutter apps Home Page
Work to create apps for generating revenue
Loading...
Searching...
No Matches
Managers.GameResetManager Class Reference

Resets the game after losing a life or running out of time with this singleton. More...

Inheritance diagram for Managers.GameResetManager:

Public Member Functions

void OnEnable ()
void OnDisable ()
void RemoveLifeAndResetScene ()
 Resets the scene if still lives left else the game has ended so update the GamePlayManager and loads the WinLoseMenu.
void ResetScene ()
 Resets the scene and removes a life from the GamePlayManager.

Properties

static GameResetManager Singleton [get, set]

Detailed Description

Resets the game after losing a life or running out of time with this singleton.

Member Function Documentation

◆ OnDisable()

void Managers.GameResetManager.OnDisable ( )

◆ OnEnable()

void Managers.GameResetManager.OnEnable ( )

◆ RemoveLifeAndResetScene()

void Managers.GameResetManager.RemoveLifeAndResetScene ( )

Resets the scene if still lives left else the game has ended so update the GamePlayManager and loads the WinLoseMenu.

◆ ResetScene()

void Managers.GameResetManager.ResetScene ( )

Resets the scene and removes a life from the GamePlayManager.

Property Documentation

◆ Singleton

GameResetManager Managers.GameResetManager.Singleton
staticgetset

The documentation for this class was generated from the following file: