Fixed preview and clothes bug
This commit is contained in:
committed by
Dries Van Schuylenbergh
parent
1e09f09dae
commit
7df6ea1ecd
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user