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; }
protected override IEnumerator UnloadScene(LevelScene scene, Action <float, string> progressDelegate) { yield break; }