public void SetContentForTeacherMode (ProblemsRepository.ProblemType problemType) { colourCodingScheme = ProblemsRepository.instance.GetColourCodingSchemeGivenProblemType (problemType); Application.LoadLevel ("Activity"); }
public void SetParametersForStudentMode (GameObject studentActivityController) { StudentsDataHandler.instance.UpdateUsersSession (currentUserSession); numStarsOfCurrentUser = StudentsDataHandler.instance.GetUsersNumStars (); ProblemsRepository.instance.Initialize (currentUserSession); colourCodingScheme = ProblemsRepository.instance.ActiveColourScheme; StudentActivityController sc = studentActivityControllerOB.GetComponent<StudentActivityController> (); }
void SetSessionColourScheme(int sessionIndex) { switch (sessionIndex) { case 0: case 1: colourSchemeForSession = new OpenClosedVowel (); return; case 2: case 3: colourSchemeForSession = new ConsonantBlends (); return; case 4: case 5: colourSchemeForSession = new ConsonantDigraphs (); return; case 6: case 7: colourSchemeForSession = new VowelInfluenceERule (); return; case 8: colourSchemeForSession = new VowelDigraphs (); return; case 9: case 10: colourSchemeForSession = new RControlledVowel (); return; case 11: colourSchemeForSession = new SyllableDivision (); return; default: colourSchemeForSession = new NoColour (); return; } }