Merge branch 'WES-XX-ScriptableList-Index-Fix' into 'development'

Resolve WES-XX-ScriptableList-Index-Fix

See merge request wesign/unity-application!62
This commit was merged in pull request #62.
This commit is contained in:
Dries Van Schuylenbergh
2023-03-25 17:16:42 +00:00
8 changed files with 43 additions and 2 deletions

View File

@@ -87,6 +87,16 @@ public class TemplateCourse : MonoBehaviour
/// </summary>
public GameObject ResultPanel;
/// <summary>
/// Reference to the title on the results panel
/// </summary>
public TMP_Text ResultsTitle;
/// <summary>
/// Reference to the description on the results panel
/// </summary>
public TMP_Text ResultsDecription;
/// <summary>
/// Button to go back to courses list
/// </summary>
@@ -260,6 +270,12 @@ public class TemplateCourse : MonoBehaviour
// Show the "finished" screen
ResultPanel.SetActive(true);
// Set the correct title
ResultsTitle.text = course.title + " voltooid!";
// Set the correct description
ResultsDecription.text = "Goed gedaan! Je kan nu spelletjes spelen met " + course.title + " om verder te oefenen!";
// Set the total time spent UI
TimeSpan time = DateTime.Now - startMoment;
timeSpent.text = time.ToString(@"hh\:mm\:ss");