public void UnMarkFirstLetter()
    {
        string richTextForUI = "";
        string letter;

        if (GameplayController.Instance.CurrentLevel.monsterInputType == MonsterInputType.Word)
        {
            for (int i = GameplayController.Instance.CurrentSegment.MonsterRequiredLetters.Length - 1; i >= 0; i--)
            {
                //letter = ArabicSupport.ArabicFixer.Fix (GameplayController.Instance.CurrentSegment.MonsterRequiredLetters [i], true, true);
                letter = RTL.Fix(GameplayController.Instance.CurrentSegment.MonsterRequiredLetters [i]);
                if (i <= lastIndex)
                {
                    richTextForUI += StringWithColorTags(StringWithBoldTags(StringWithSizeTags(letter, mDefaultSize)), mController.FontColorWordDefault);
                }
                else
                {
                    richTextForUI += StringWithColorTags(StringWithBoldTags(StringWithSizeTags(letter, mDefaultSize)), mController.FontColorWordBold);
                }
            }
            if (mTarget != null)
            {
                mTarget.text = richTextForUI;
            }
            lastIndex++;
        }
    }
示例#2
0
 public string GetFixAllLetters(int index)
 {
     if (_fixAllLetters == null)
     {
         _fixAllLetters = new string[MonsterAllLetters.Length];
     }
     if (string.IsNullOrEmpty(_fixAllLetters [index]))
     {
         _fixAllLetters [index] = RTL.Fix(MonsterAllLetters [index]);
     }
     return(_fixAllLetters [index]);
 }