Fixed preview and clothes bug

This commit is contained in:
Jerome Coudron
2023-05-14 12:37:36 +00:00
committed by Dries Van Schuylenbergh
parent 1e09f09dae
commit 7df6ea1ecd
5 changed files with 47 additions and 28 deletions

View File

@@ -135,6 +135,21 @@ public class CoursesControllerTests
var coursesController = GameObject.FindObjectOfType<CoursesController>();
Assert.IsNotNull(coursesController);
Assert.AreEqual(coursesController.GetPanelId(), 0);
// Check that you reach multiple-choice after 6 NextSigns
coursesController.NextSign();
yield return new WaitForSeconds(1f);
coursesController.NextSign();
yield return new WaitForSeconds(1f);
coursesController.NextSign();
yield return new WaitForSeconds(1f);
coursesController.NextSign();
yield return new WaitForSeconds(1f);
coursesController.NextSign();
yield return new WaitForSeconds(1f);
coursesController.NextSign();
yield return new WaitForSeconds(1f);
Assert.AreEqual(coursesController.GetPanelId(), 1);
}