/// <summary>
        /// Select next Spelling after correct answer
        /// </summary>
        public void SelectNextSpelling()
        {
            foreach (var obj in spellings)
            {
                obj.OnDeselect();
            }

            if (currentSpelling)
            {
                currentSpelling.OnSolved();
            }

            if (questionNo >= spellings.Count)
            {
                GetComponent <FillInTheBlanksWall>().OnComplete();
                return;
            }

            currentSpelling = spellings[questionNo];
            currentSpelling.OnSelect();

            OnSpellingSelected(spellings[questionNo]);

            questionNo++;
        }
Exemple #2
0
 private void OnSpellingSelected(FillInTheBlanksSpelling spelling)
 {
     selectedSpelling = spelling;
 }