diff --git a/Assets/Courses/Scripts/TemplateCourse.cs b/Assets/Courses/Scripts/TemplateCourse.cs index d41227c..a0fae96 100644 --- a/Assets/Courses/Scripts/TemplateCourse.cs +++ b/Assets/Courses/Scripts/TemplateCourse.cs @@ -114,6 +114,38 @@ public class TemplateCourse : AbstractFeedback /// public TMP_Text timeSpent; + + /// + /// Reference to the feedback field + /// + public TMP_Text feedbackText; + + /// + /// Reference to the progress bar + /// + public Slider feedbackProgress; + + /// + /// Reference to the progress bar image, so we can add fancy colors + /// + public Image feedbackProgressImage; + + /// + /// Timer to keep track of how long a incorrect sign is performed + /// + protected DateTime timer; + + /// + /// Current predicted sign + /// + protected string predictedSign = null; + + /// + /// Previous incorrect sign, so we can keep track whether the user is wrong or the user is still changing signs + /// + protected string previousIncorrectSign = null; + + /// /// This function is called when the script is initialised. /// It inactivatis the popup, finds a webcam to use and links it via the WebcamTexture to the display RawImage. diff --git a/Assets/Hangman/Scripts/HangmanGameController.cs b/Assets/Hangman/Scripts/HangmanGameController.cs index 561303e..50bfe80 100644 --- a/Assets/Hangman/Scripts/HangmanGameController.cs +++ b/Assets/Hangman/Scripts/HangmanGameController.cs @@ -212,6 +212,36 @@ public class HangmanGameController : AbstractFeedback /// private String currentsign = ""; + /// + /// Reference to the feedback field + /// + public TMP_Text feedbackText; + + /// + /// Reference to the progress bar + /// + public Slider feedbackProgress; + + /// + /// Reference to the progress bar image, so we can add fancy colors + /// + public Image feedbackProgressImage; + + /// + /// Timer to keep track of how long a incorrect sign is performed + /// + protected DateTime timer; + + /// + /// Current predicted sign + /// + protected string predictedSign = null; + + /// + /// Previous incorrect sign, so we can keep track whether the user is wrong or the user is still changing signs + /// + protected string previousIncorrectSign = null; + // Start is called before the first frame update void Start() { diff --git a/Assets/MediaPipeUnity/Scripts/AbstractFeedback.cs b/Assets/MediaPipeUnity/Scripts/AbstractFeedback.cs index 65bdda8..8afb493 100644 --- a/Assets/MediaPipeUnity/Scripts/AbstractFeedback.cs +++ b/Assets/MediaPipeUnity/Scripts/AbstractFeedback.cs @@ -12,44 +12,14 @@ using UnityEngine.UI; /// public abstract class AbstractFeedback : MonoBehaviour, Listener { - /// - /// Reference to the feedback field - /// - public TMP_Text feedbackText; - - /// - /// Reference to the progress bar - /// - public Slider feedbackProgress; - - /// - /// Reference to the progress bar image, so we can add fancy colors - /// - public Image feedbackProgressImage; /// /// Reference to the sign predictor /// public SignPredictor signPredictor; - /// - /// Timer to keep track of how long a incorrect sign is performed - /// - protected DateTime timer; - - /// - /// Current predicted sign - /// - protected string predictedSign = null; - - /// - /// Previous incorrect sign, so we can keep track whether the user is wrong or the user is still changing signs - /// - protected string previousIncorrectSign = null; - public IEnumerator ProcessIncomingCall() { - //UpdateFeedback2(); yield return StartCoroutine(UpdateFeedback()); } @@ -58,7 +28,5 @@ public abstract class AbstractFeedback : MonoBehaviour, Listener signPredictor.listeners.Add(this); } - public void Empty() { } - protected abstract IEnumerator UpdateFeedback(); } \ No newline at end of file diff --git a/Assets/SpellingBee/Scripts/GameController.cs b/Assets/SpellingBee/Scripts/GameController.cs index 3ca0c2c..302f03e 100644 --- a/Assets/SpellingBee/Scripts/GameController.cs +++ b/Assets/SpellingBee/Scripts/GameController.cs @@ -142,6 +142,36 @@ public partial class GameController : AbstractFeedback /// public GameObject gameEndedPanel; + /// + /// Reference to the feedback field + /// + public TMP_Text feedbackText; + + /// + /// Reference to the progress bar + /// + public Slider feedbackProgress; + + /// + /// Reference to the progress bar image, so we can add fancy colors + /// + public Image feedbackProgressImage; + + /// + /// Timer to keep track of how long a incorrect sign is performed + /// + protected DateTime timer; + + /// + /// Current predicted sign + /// + protected string predictedSign = null; + + /// + /// Previous incorrect sign, so we can keep track whether the user is wrong or the user is still changing signs + /// + protected string previousIncorrectSign = null; + /// /// Start is called before the first frame update ///