GetTrans() public method

public GetTrans ( ) : string
return string
コード例 #1
0
ファイル: QuizController.cs プロジェクト: RUGSoftEng/Team-6
    /*
     * 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();
    }