GetTrans() публичный Метод

public GetTrans ( ) : string
Результат string
Пример #1
0
    /*
     * The UpdateGame method makes sure everything in the game is correct at any point in time.
     * It sets the right words for the buttons and selects new ones if needed.
     */
    private void UpdateGame()
    {
        if (toDoList.Count < 1)
        {
            CreateEndscreen();
            return;
        }

        currentWord = nextWord;
        string wrongTrans;
        do
        {
            wrongTrans = SelectRandomWord(totalWordList).GetTrans();
        } while (currentWord.GetTrans().Equals(wrongTrans));
        correct = UnityEngine.Random.Range(0, 2);
        middleText.GetComponent<UpdateMiddleText>().UpdateText(descWithWord, currentWord.GetTrans(), wrongTrans, correct);
        timer.StartTiming();
    }