Class GameManagerBase<TGameManager>
Game manager base class.
Inheritance
System.Object
GameManagerBase<TGameManager>
Namespace: Edgar.Unity.Examples
Assembly: cs.temp.dll.dll
Syntax
public abstract class GameManagerBase<TGameManager> : MonoBehaviour where TGameManager : class
Type Parameters
Name | Description |
---|---|
TGameManager | Actual type of the game manager |
Fields
Canvas
UI canvas.
Declaration
public GameObject Canvas
Field Value
Type | Description |
---|---|
GameObject |
Instance
Singleton instance of the game manager.
Declaration
public static TGameManager Instance
Field Value
Type | Description |
---|---|
TGameManager |
Methods
Awake()
Declaration
public void Awake()
GetCanvas()
Get canvas game object.
Declaration
protected GameObject GetCanvas()
Returns
Type | Description |
---|---|
GameObject |
HideLoadingScreen()
Hide loading screen.
Declaration
protected void HideLoadingScreen()
LoadNextLevel()
Load next level.
Declaration
public abstract void LoadNextLevel()
SetLevelInfo(String)
Display information about the level like time to generate the level, etc.
Declaration
protected void SetLevelInfo(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text |
ShowLoadingScreen(String, String)
Show loading screen with primary and secondary text.
Declaration
protected void ShowLoadingScreen(string primaryText, string secondaryText)
Parameters
Type | Name | Description |
---|---|---|
System.String | primaryText | |
System.String | secondaryText |
SingletonAwake()
Declaration
protected virtual void SingletonAwake()