From a6761cf3d4a1366e260b214289839fd978947540 Mon Sep 17 00:00:00 2001 From: Mathieu Loiseau <mathieu.loiseau@liris.cnrs.fr> Date: Mon, 13 Nov 2023 17:49:51 +0100 Subject: [PATCH] explication dans le training --- Assets/QCM_manager.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Assets/QCM_manager.cs b/Assets/QCM_manager.cs index 3f972849..7e4cafa8 100644 --- a/Assets/QCM_manager.cs +++ b/Assets/QCM_manager.cs @@ -178,7 +178,23 @@ public class QCM_manager : MonoBehaviour break; case 9: // Explication - playswitch = true; + if (mM.i.type == "training" && mM.i.explication != null && mM.i.explication.Length > 0) + { + if (mM.i.surlignerExplication >= 0.0f) + { + foreach (groupemementChoixEtPrefabBoutonQCM b in mM.list_choix_associed_with_prefabs) + { + if (b.choix.correct) + { + //Debug.Log("choix correct explication doit clignoter i.surlignerExplication=" + mM.i.surlignerExplication); + b.boutonqcmAssocied.clignote(mM.i.surlignerExplication); + } + } + } + mM.executeAsset(mM.i.explication, mM.playSteps, false); + // plus on fait clignoter le bon resultat + } + else { playswitch = true; } break; case 10: // transition le son est manquant actuellement mM.executeAsset(mM.i.transition, mM.playSteps,false); -- GitLab