예제 #1
0
        protected override IEnumerator LoadScene(LevelScene scene, Action <float, string> progressDelegate)
        {
            yield return(null);

            /*
             * When loading scene, make sure LevelRoot knows about what scene it is currently in.
             * Find LevelDescriptor with the corresponding ID and assign it to the CurrentLevel property of the LevelRoot
             */
            scene.LevelRoot.CurrentLevel = LevelManagementService.Levels.FirstOrDefault(level => level.Id == scene.Id);

            yield break;
        }
예제 #2
0
 protected override IEnumerator UnloadScene(LevelScene scene, Action <float, string> progressDelegate)
 {
     yield break;
 }