예제 #1
0
    void setUpChosenWords()
    {
        classyImg[0].color = colorBlack;

        string previewWord = GameInfoChoose.info.words[GameInfoChoose.currentRound].word;

        int currentRound = GameInfoChoose.currentRound;

        ChooseButtons choice1 = GameInfoChoose.selectedButtons[currentRound, 0];
        ChooseButtons choice2 = GameInfoChoose.selectedButtons[currentRound, 1];
        ChooseButtons choice3 = GameInfoChoose.selectedButtons[currentRound, 2];


        int wordPosition = GameInfoChoose.info.words[currentRound].position;

        if (choice1 != null)
        {
            choiceText[0].text = wordPosition == 1 ? previewWord + " " + choice1.word :
                                 choice1.word + " " + previewWord;
        }
        if (choice2 != null)
        {
            choiceText[1].text = wordPosition == 1 ? previewWord + " " + choice2.word :
                                 choice2.word + " " + previewWord;
        }
        if (choice3 != null)
        {
            choiceText[2].text = wordPosition == 1 ? previewWord + " " + choice3.word :
                                 choice3.word + " " + previewWord;
        }
    }
예제 #2
0
    void setPreviewWords()
    {
        string previewWord = GameInfoChoose.info.words[GameInfoChoose.currentRound].word;

        int currentRound = GameInfoChoose.currentRound;

        ChooseButtons choice1 = GameInfoChoose.selectedButtons[currentRound, 0];
        ChooseButtons choice2 = GameInfoChoose.selectedButtons[currentRound, 1];
        ChooseButtons choice3 = GameInfoChoose.selectedButtons[currentRound, 2];

        int wordPosition = GameInfoChoose.info.words[currentRound].position;

        if (choice1 != null)
        {
            choice1Text.text = wordPosition == 1 ? previewWord + " " + choice1.word:
                               choice1.word + " " + previewWord;
        }
        if (choice2 != null)
        {
            choice2Text.text = wordPosition == 1 ? previewWord + " " + choice2.word :
                               choice2.word + " " + previewWord;
        }
        if (choice3 != null)
        {
            choice3Text.text = wordPosition == 1 ? previewWord + " " + choice3.word :
                               choice3.word + " " + previewWord;
        }
    }
예제 #3
0
    void ClassifySelect(int pos)
    {
        if (reorder)
        {
            reorderNumbers.Add(pos);
            classyImg[pos].color  = colorBlack;
            classyText[pos].color = colorBlack;

            if (reorderNumbers.Count == 2)
            {
                RecolorUI();

                ChooseButtons temp = classyfiedBtns[reorderNumbers[0]];
                classyfiedBtns[reorderNumbers[0]] = classyfiedBtns[reorderNumbers[1]];
                classyfiedBtns[reorderNumbers[1]] = temp;

                reorderNumbers.Clear();

                UpdateUI();
            }
        }
    }