/// <summary>
 /// Prepares the string for display (say from Arabic into TMPro Text
 /// </summary>
 /// <returns>The string for display.</returns>
 /// <param name="">.</param>
 public static string PrepareArabicStringForDisplay(string str, bool reversed = true)
 {
     if (reversed)
     {
         // needed to be set in a TMPro RTL text
         return(GenericUtilities.ReverseText(ArabicFixer.Fix(str, true, true)));
     }
     return(ArabicFixer.Fix(str, true, true));
 }
Пример #2
0
        public void Init(ILivingLetterData _data, string text, DropContainer _dropContainer)
        {
            DropContain = _dropContainer;
            Data        = _data;

            LetterLable.font = normalFont;
            LetterLable.text = GenericUtilities.ReverseText(text);
            DrawText.gameObject.SetActive(false);

            AreaState = State.disabled;
        }