public DefaultQuestionPlacer(AssessmentEvents events, AssessmentAudioManager audioManager, QuestionPlacerOptions options) { this.events = events; this.audioManager = audioManager; this.options = options; if (events != null) { this.events.OnAllQuestionsAnsweredPlacer = ColorImageByGreen; } }
public ImageQuestionGenerator(IQuestionProvider provider, bool missingLetter, AssessmentAudioManager audioManager, AssessmentEvents events) { this.provider = provider; this.missingLetter = missingLetter; this.audioManager = audioManager; if (AssessmentOptions.Instance.CompleteWordOnAnswered) { events.OnAllQuestionsAnswered = CompleteWordCoroutine; } if (AssessmentOptions.Instance.ShowFullWordOnAnswered) { events.OnAllQuestionsAnswered = ShowFullWordCoroutine; } state = QuestionGeneratorState.Uninitialized; ClearCache(); }
// ################################## // INIT // ################################## public DefaultQuestionGenerator(IQuestionProvider provider, AssessmentAudioManager dialogues, AssessmentEvents events, DefaultQuestionType config) { this.provider = provider; this.dialogues = dialogues; this.config = config; if (config == DefaultQuestionType.MissingForm) { events.OnAllQuestionsAnswered = CompleteWordsWithForm; } if (config == DefaultQuestionType.WordsWithLetter) { events.OnPreQuestionsAnswered = ShowGreenLetterInWord; } if (AssessmentOptions.Instance.ReadQuestionAndAnswer) { events.OnAllQuestionsAnswered = ReadQuestionAndReplyEvent; } state = QuestionGeneratorState.Uninitialized; ClearCache(); }
public DefaultQuestionGenerator(IQuestionProvider provider, AssessmentAudioManager dialogues, AssessmentEvents events) : this(provider, dialogues, events, DefaultQuestionType.Default) { }
public DefaultLogicInjector(IDragManager dragManager, AssessmentEvents events) { this.dragManager = dragManager; this.events = events; ResetRound(); }
public AnswerChecker(AssessmentAudioManager audioManager, AssessmentEvents events = null) { this.audioManager = audioManager; this.events = events; }
public SortingLogicInjector(IDragManager dragManager, AssessmentEvents events) : base(dragManager, events) { }