Ejemplo n.º 1
0
        /// <summary>
        /// Changes the current scene.
        /// </summary>
        /// <param name="sceneName">Name of the scene to change to.</param>
        public void ChangeScene(string sceneName)
        {
            SceneManager.LoadScene(sceneName);

            // ToDo: Set SystemVariable CurrentScene
            //SystemVariables.CurrentScene = sceneName;

            SceneChanged incident = new SceneChanged();
            incident.SceneName = sceneName;

            QueueEvent(incident);
        }