Exemple #1
0
        private void EmptyTransition()
        {
            string currentScene = SceneManager.GetActiveScene().name;


            this.previousScene = emptyIdentifier;
            this.currentScene  = currentScene;

            string emptyKey = SceneTransitionDefinition.CreateKey(this.previousScene, this.currentScene);

            if (!transitionsByKey.ContainsKey(emptyKey))
            {
                Debug.LogError("EmptyTransition not assigned to " + this);
                return;
            }

            this.Transition();
        }
Exemple #2
0
        private void Transition()
        {
            IEnumerator routine = this.Transition(SceneTransitionDefinition.CreateKey(this.previousScene, this.currentScene));

            this.runner.StartCoroutine(routine);
        }