BomberUnits
...a Unity learning project
LevelManager Class Reference
+ Inheritance diagram for LevelManager:
+ Collaboration diagram for LevelManager:

Static Public Member Functions

static void LoadSelectedLevel ()
 
static void FadeToScene (SceneReference newScene)
 
static void EnsureMainMenuScene ()
 Makes sure the main menu scene is the current scene.
 
static bool CheckPlayerCountForSelected ()
 
static void SetSelected (Level lvl)
 
- Static Public Member Functions inherited from MonoSingleton< LevelManager >
static T Get ()
 Singleton access.
 

Public Attributes

SceneFader sceneFader
 
List< Levellevels
 
SceneReference mainMenuScene
 
Level selectedLevel
 

Static Public Attributes

static UnityEvent levelSelectionChangedEvent
 

Protected Member Functions

override void MyAwake ()
 You may override this to have an Awake()-like function. More...
 

Private Member Functions

void Start ()
 
void OnFadedOut ()
 
void OnSceneFinishedLoading (Scene scene, LoadSceneMode mode)
 
void OnJoinedRoom ()
 
void OnRoomPropertiesUpdate (ExitGames.Client.Photon.Hashtable changedProps)
 
void UpdateLocalFromNetDataAndInvokeEvent (object data)
 

Private Attributes

SceneReference sceneToLoad = null
 

Static Private Attributes

static string selectedLevelNetDataKey = "SelectedLevel"
 

Additional Inherited Members

- Static Protected Attributes inherited from MonoSingleton< LevelManager >
static T instance
 Singleton pattern instance.
 

Detailed Description

Definition at line 12 of file LevelManager.cs.

Member Function Documentation

◆ MyAwake()

override void MyAwake ( )
inlineprotectedvirtual

You may override this to have an Awake()-like function.

Only called if this is the first instance as all further instances are destroyed.

Reimplemented from MonoSingleton< LevelManager >.

Definition at line 97 of file LevelManager.cs.


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