|
Eye of the Nile Docs
Everything you need to know to get started!
|
Loads a given Unity scene when a player goes through a warp/door or dies. This also handles the black fade transition.
Documentation updated 9/15/2024
Public Member Functions | |
| void | LoadNewStage (string newStageName) |
Public Attributes | |
| Animator | fadeAnimator |
| Reference to the animator responsible for the fate-to-black animation we want to play when loading a new scene. | |
| ActiveAbilityData | activeAbilities |
| Reference to the ActiveAbilityData object. | |
Properties | |
| Dictionary< string, StageWarp > | StageWarps [get, set] |
| Dictionary linking each StageWarp object to its name. | |
Private Member Functions | |
| void | InitializeWarps () |
| Populate the dictionary with every StageWarp in the scene and their names. | |
| IEnumerator | TransitionToNewStage (string newStageName) |
| Starts the fade animation, waits one second for the animation to end, then loads the new scene. | |
| void | Awake () |
| Run InitializeWarps(). | |
| void | Start () |
Private Attributes | |
| DataManager | dataManager |
| Reference to the DataManager. | |
|
private |
Run InitializeWarps().
|
private |
Populate the dictionary with every StageWarp in the scene and their names.
| void StageLoader.LoadNewStage | ( | string | newStageName | ) |
Parses the given stage name, changing it if it's a stand-in for another scene name ("this" = this scene, "RESPAWN" = scene of respawn point). Then, it runs a coroutine for TransitionToNewStage().
|
private |
|
private |
Starts the fade animation, waits one second for the animation to end, then loads the new scene.
| ActiveAbilityData StageLoader.activeAbilities |
Reference to the ActiveAbilityData object.
|
private |
Reference to the DataManager.
| Animator StageLoader.fadeAnimator |
Reference to the animator responsible for the fate-to-black animation we want to play when loading a new scene.
|
getset |
Dictionary linking each StageWarp object to its name.