FixToArabic.cs
Code: Select all
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ArabicSupport;
using PixelCrushers.DialogueSystem;
public class FixToArabic : MonoBehaviour
{
void OnConversationLine(Subtitle subtitle)
{
subtitle.formattedText.text = ArabicFixer.Fix(subtitle.formattedText.text, false, false);
}
void OnConversationResponseMenu(Response[] responses)
{
for (int i = 0; i < responses.Length; i++)
{
responses[i].formattedText.text = ArabicFixer.Fix(responses[i].formattedText.text, false, false);
}
}
}