Esempio n. 1
0
    private void TranslateThatPlayerUnderstend()
    {
        string source = DialogController.GetDialog().GetData().longDescritorin;

        string translate = TranslateSystem.TranslateToPolishByWords(source, PlayerData.knowWords);

        controller.SetLongDescription(translate);
    }
Esempio n. 2
0
    private void TranslatePartThatPlayerUnderstend()
    {
        string source = DialogController.GetDialog().GetData().longDescritorin;

        List <Word> words = new List <Word>();

        for (int i = 0; i < PlayerData.knowWords.Count; i++)
        {
            if (Random.Range(0, 100) <= 30)
            {
                words.Add(PlayerData.knowWords[i]);
            }
        }

        string translate = TranslateSystem.TranslateToPolishByWords(source, words);

        controller.SetLongDescription(translate);
    }