Demo day booth

This commit is contained in:
Dries Van Schuylenbergh
2023-04-23 18:50:07 +00:00
committed by Jelle De Geest
parent 5b4a3ec4e7
commit fcd8acad1e
248 changed files with 22351 additions and 7800 deletions

View File

@@ -1,4 +1,5 @@
using UnityEngine;
using UnityEngine.Playables;
/// <summary>
/// ListCourseScreen scene manager
@@ -20,6 +21,11 @@ public class ListCoursesScreen : MonoBehaviour
/// </summary>
public CourseList courseList;
/// <summary>
/// Reference to the scene playable director
/// </summary>
public PlayableDirector directorEnterFromCourseMenu;
/// <summary>
/// Start is called before the first frame update
/// </summary>
@@ -40,6 +46,10 @@ public class ListCoursesScreen : MonoBehaviour
var progress = user.GetCourseProgress(course.index);
item.progress = progress != null ? progress.progress : 0.0f;
}
var sys = SystemController.GetInstance();
if (sys.previousScene == SystemController.GetSceneIndex("Common/Scenes/CoursesMenuScreen"))
directorEnterFromCourseMenu.Play();
}
/// <summary>