コード例 #1
0
ファイル: GameController.cs プロジェクト: rpwang94/TheRedKing
    public void DisplayCardText()
    {
        UnpackChoices();

        string[] descriptions = cardDescriptions.ToArray();
        choice1.GetComponentInChildren <Text>().text = descriptions [0];
        choice2.GetComponentInChildren <Text>().text = descriptions [1];
        choice3.GetComponentInChildren <Text>().text = descriptions [2];
        choice4.GetComponentInChildren <Text>().text = descriptions [3];

        questionText.text = cardChoiceHandler.currentCard.cardText;

        playerHandler.CreatePlayerStatsString();
        playerStatsText.text = playerStats;
    }