Ejemplo n.º 1
0
        /// <summary>
        /// Perform common initialization
        /// </summary>
        private static void Init(AssessmentContext context)
        {
            // ARABIC SETTINGS
            AssessmentOptions.Instance.LocaleTextDirection    = TextDirection.RightToLeft;
            AssessmentOptions.Instance.ReadQuestionAndAnswer  = false;
            AssessmentOptions.Instance.CompleteWordOnAnswered = false;
            AssessmentOptions.Instance.ShowFullWordOnAnswered = false;
            AssessmentOptions.Instance.WideLL                = false;
            AssessmentOptions.Instance.AnswerType            = LivingLetterDataType.Letter;
            AssessmentOptions.Instance.PlayCorrectAnswer     = false;
            AssessmentOptions.Instance.PlayAllCorrectAnswers = false;

            placerOptions = QuestionPlacerOptions.Instance;
            placerOptions.AnswerWideness = ElementsSize.Get(LivingLetterDataType.Letter);
            placerOptions.AnswerWideness = ElementsSize.Get(LivingLetterDataType.Letter);

            context.Configuration   = AssessmentConfiguration.Instance;
            context.Events          = new AssessmentEvents();
            context.Utils           = AssessmentConfiguration.Instance.Context;
            context.CheckMarkWidget = context.Utils.GetCheckmarkWidget();
            context.AudioManager    = new AssessmentAudioManager(context.Utils.GetAudioManager(),
                                                                 context.Utils.GetSubtitleWidget(),
                                                                 context.GameDescription);

            context.AnswerChecker = new AnswerChecker(context.AudioManager, context.Events);

            rounds = AssessmentConfiguration.Instance.NumberOfRounds;
        }
Ejemplo n.º 2
0
 void Awake()
 {
     instance   = this;
     mainCamera = Camera.main;
     if (mainCamera.orthographic == false)
     {
         Debug.LogWarning("main Camera is not the orthographic one");
     }
 }
Ejemplo n.º 3
0
        public DefaultQuestionPlacer(AssessmentEvents events,
                                     AssessmentAudioManager audioManager, QuestionPlacerOptions options)
        {
            this.events       = events;
            this.audioManager = audioManager;
            this.options      = options;

            if (events != null)
            {
                this.events.OnAllQuestionsAnsweredPlacer = ColorImageByGreen;
            }
        }
Ejemplo n.º 4
0
 public RandomAnswerPlacer(AssessmentAudioManager audioManager, QuestionPlacerOptions placerOptions)
 {
     this.audioManager  = audioManager;
     this.placerOptions = placerOptions;
 }
Ejemplo n.º 5
0
 public CategoryQuestionPlacer(AssessmentAudioManager audioManager, QuestionPlacerOptions options)
     : base(null, audioManager, options)
 {
 }