/// <summary> /// Load scene. Call just once, otherwise transition will be reset and not triggered. /// </summary> /// <param name="_sceneToLoad">The name of the scene to load</param> /// <param name="_transitionSettings">Custom transition settings</param> public void LoadSceneWithTransition(string _sceneToLoad, SceneTransitionSettings _transitionSettings) { _isTransitioning = true; if (OnSceneStartTransition != null) { OnSceneStartTransition(); } SceneTransitioner.Show(true, delegate { OnSceneTransitionComplete(_sceneToLoad); }); }
/// <summary> /// Set scene transition settings. /// </summary> /// <param name="_transitionSettings"></param> public void SetSettings(SceneTransitionSettings _transitionSettings) { TransitionSettings = _transitionSettings; }