diff --git a/Assets/QCM_manager.cs b/Assets/QCM_manager.cs index 3f9728497d519ef8bdf42dd3e92317fd22586486..7e4cafa8ba6bcc1a065981b30a526608d82162d6 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);