Succesfully removed model from theme

This commit is contained in:
CoudronJerome
2023-03-26 22:51:02 +02:00
parent 9f0f48e257
commit 2183397a0f
4 changed files with 6 additions and 10 deletions

View File

@@ -23,11 +23,6 @@ public class Theme : ScriptableObject
/// </summary> /// </summary>
public ThemeIndex index; public ThemeIndex index;
/// <summary>
/// Reference to the model used in the SignPredictor
/// </summary>
public NNModel model;
/// <summary> /// <summary>
/// The index of the model you want to use /// The index of the model you want to use
/// </summary> /// </summary>

View File

@@ -6,7 +6,8 @@
"GUID:63c63e721f65ebb7d871cb9ef49f4752", "GUID:63c63e721f65ebb7d871cb9ef49f4752",
"GUID:1631ed2680c61245b8211d943c1639a8", "GUID:1631ed2680c61245b8211d943c1639a8",
"GUID:5c2b5ba89f9e74e418232e154bc5cc7a", "GUID:5c2b5ba89f9e74e418232e154bc5cc7a",
"GUID:7f2d0ee6dd21e1d4eb25b71b7a749d25" "GUID:7f2d0ee6dd21e1d4eb25b71b7a749d25",
"GUID:d0b6b39a21908f94fbbd9f2c196a9725"
], ],
"includePlatforms": [], "includePlatforms": [],
"excludePlatforms": [], "excludePlatforms": [],

View File

@@ -56,8 +56,8 @@ public class CourseActivityScreen : MonoBehaviour
Course course = courseList.courses[index]; Course course = courseList.courses[index];
// vvv TEMPORARY STUFF vvv // vvv TEMPORARY STUFF vvv
playButton.SetActive(course.theme.model != null); playButton.SetActive(course.theme.modelIndex != ModelIndex.NONE);
previewButton.SetActive(course.theme.model == null); previewButton.SetActive(course.theme.modelIndex == ModelIndex.NONE);
// ^^^ TEMPORARY STUFF ^^^ // ^^^ TEMPORARY STUFF ^^^
title.text = course.title; title.text = course.title;

View File

@@ -134,8 +134,8 @@ public class TemplateCourse : MonoBehaviour
maxWords = course.theme.learnables.Count; maxWords = course.theme.learnables.Count;
// vvv TEMPORARY STUFF vvv // vvv TEMPORARY STUFF vvv
feedbackProgressBar.SetActive(course.theme.model != null); feedbackProgressBar.SetActive(course.theme.modelIndex != ModelIndex.NONE);
previewMessage.SetActive(course.theme.model == null); previewMessage.SetActive(course.theme.modelIndex == ModelIndex.NONE);
// Instead, the NONE-modelIndex points to Fingerspelling, which gives the same result // Instead, the NONE-modelIndex points to Fingerspelling, which gives the same result
//feedback.signPredictor.model = previewModel; //feedback.signPredictor.model = previewModel;
// ^^^ TEMPORARY STUFF ^^^ // ^^^ TEMPORARY STUFF ^^^