Resolve WES-80 "Data"
This commit is contained in:
@@ -142,7 +142,7 @@ public class TemplateCourse : MonoBehaviour
|
||||
|
||||
// Setting up course
|
||||
course = courselist.courses[courselist.currentCourseIndex];
|
||||
maxWords = course.learnables.Count;
|
||||
maxWords = course.theme.learnables.Count;
|
||||
|
||||
// Create entry in current user for keeping track of progress
|
||||
user = userList.GetCurrentUser();
|
||||
@@ -150,7 +150,7 @@ public class TemplateCourse : MonoBehaviour
|
||||
if (progress == null)
|
||||
{
|
||||
progress = new Progress();
|
||||
progress.AddOrUpdate<CourseIndex>("courseIndex", CourseIndex.FINGERSPELLING);
|
||||
progress.AddOrUpdate<CourseIndex>("courseIndex", course.index);
|
||||
progress.AddOrUpdate<float>("courseProgress", -1.0f);
|
||||
user.courses.Add(progress);
|
||||
}
|
||||
@@ -177,7 +177,7 @@ public class TemplateCourse : MonoBehaviour
|
||||
/// </summary>
|
||||
private void NextVideo()
|
||||
{
|
||||
player.clip = course.learnables[currentWordIndex].clip;
|
||||
player.clip = course.theme.learnables[currentWordIndex].clip;
|
||||
// This loads first frame, so that it can be used as a sort-of preview for the video
|
||||
player.Play();
|
||||
// As the video will start playiing -> hide button
|
||||
@@ -192,7 +192,7 @@ public class TemplateCourse : MonoBehaviour
|
||||
/// </summary>
|
||||
private void NextImage()
|
||||
{
|
||||
wordImage.sprite = course.learnables[currentWordIndex].image;
|
||||
wordImage.sprite = course.theme.learnables[currentWordIndex].image;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user