Class SceneLoader
- Namespace
- ProjectL.Management
- Assembly
- Assembly-CSharp.dll
Manages the SceneLoader
prefab. Provides functionality for transitioning between different scenes.
public class SceneLoader : Singleton<SceneLoader>
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourSceneLoader
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutMonoBehaviour.didStartMonoBehaviour.didAwakeMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.GetComponentIndex()Component.CompareTag(TagHandle)Component.transformComponent.gameObjectComponent.tagComponent.rigidbodyComponent.rigidbody2DComponent.cameraComponent.lightComponent.animationComponent.constantForceComponent.rendererComponent.audioComponent.networkViewComponent.colliderComponent.collider2DComponent.hingeJointComponent.particleSystemObject.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Fields
FinalResultsScene
public const string FinalResultsScene = "4-FinalResults"
Field Value
GameScene
public const string GameScene = "3-Game"
Field Value
MainMenuScene
public const string MainMenuScene = "1-MainMenu"
Field Value
PlayerSelectionScene
public const string PlayerSelectionScene = "2-PlayerSelection"
Field Value
Methods
Awake()
Called when the script instance is being loaded. Ensures that only one instance exists and destroys any duplicate objects.
protected override void Awake()
LoadFinalResultsAsync()
Loads the final results scene.
public void LoadFinalResultsAsync()
LoadGameAsync()
Loads the game scene with.
public void LoadGameAsync()
LoadMainMenuAsync()
Loads the main menu scene. Also disables the logger if it exists.
public void LoadMainMenuAsync()
LoadPlayerSelectionAsync()
Loads the player selection scene. Also clears the logger.
public void LoadPlayerSelectionAsync()