Fixed preview and clothes bug

This commit is contained in:
Jerome Coudron
2023-05-14 12:37:36 +00:00
committed by Dries Van Schuylenbergh
parent 1e09f09dae
commit 7df6ea1ecd
5 changed files with 47 additions and 28 deletions

View File

@@ -81,12 +81,13 @@ public class CourseActivityScreen : MonoBehaviour
// Set progress
PersistentDataController.GetInstance().Load();
progress = UserList.GetCurrentUser().GetCourseProgress(course.index);
if (progress != null && course.theme.modelIndex != ModelIndex.NONE)
if (progress != null)
{
progressBar.value = progress.progress;
if (progress.progress == 1.0f)
{
playButton.SetActive(false);
previewButton.SetActive(false);
progressObject.SetActive(false);
completedObject.SetActive(true);
}