Resolve WES-XX-ScriptableList-Index-Fix

This commit is contained in:
Jerome Coudron
2023-03-25 17:16:41 +00:00
committed by Dries Van Schuylenbergh
parent 8696aff135
commit 4402e80d0c
8 changed files with 44 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>
@@ -259,6 +269,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");