コード例 #1
0
    public void RefreshStats()
    {
        textDisplay.DisplayNumberOn(redKillsSingle, redKillsTenField, redKillsUnitField, gameInfo.player1score);
        textDisplay.DisplayNumberOn(redDeathsSingle, redDeathsTenField, redDeathsUnitField, gameInfo.player1deaths);

        textDisplay.DisplayNumberOn(greenKillsSingle, greenKillsTenField, greenKillsUnitField, gameInfo.player2score);
        textDisplay.DisplayNumberOn(greenDeathsSingle, greenDeathsTenField, greenDeathsUnitField, gameInfo.player2deaths);

        textDisplay.DisplayNumberOn(blueKillsSingle, blueKillsTenField, blueKillsUnitField, gameInfo.player3score);
        textDisplay.DisplayNumberOn(blueDeathsSingle, blueDeathsTenField, blueDeathsUnitField, gameInfo.player3deaths);

        textDisplay.DisplayNumberOn(yellowKillsSingle, yellowKillsTenField, yellowKillsUnitField, gameInfo.player4score);
        textDisplay.DisplayNumberOn(yellowDeathsSingle, yellowDeathsTenField, yellowDeathsUnitField, gameInfo.player4deaths);
    }
コード例 #2
0
    public void SetEndGameValues(
        int firstScore, int firstDeaths,
        int secondScore, int secondDeaths,
        int thirdScore, int thirdDeaths,
        int fourthScore, int fourthDeaths)
    {
        textDisplay.DisplayNumberOn(firstScoreSingle, firstScoreTenField, firstScoreUnitField, firstScore);
        textDisplay.DisplayNumberOn(firstDeathSingle, firstDeathTenField, firstDeathUnitField, firstDeaths);

        textDisplay.DisplayNumberOn(secondScoreSingle, secondScoreTenField, secondScoreUnitField, secondScore);
        textDisplay.DisplayNumberOn(secondDeathSingle, secondDeathTenField, secondDeathUnitField, secondDeaths);

        textDisplay.DisplayNumberOn(thirdScoreSingle, thirdScoreTenField, thirdScoreUnitField, thirdScore);
        textDisplay.DisplayNumberOn(thirdDeathSingle, thirdDeathTenField, thirdDeathUnitField, thirdDeaths);

        textDisplay.DisplayNumberOn(fourthScoreSingle, fourthScoreTenField, fourthScoreUnitField, fourthScore);
        textDisplay.DisplayNumberOn(fourthDeathSingle, fourthDeathTenField, fourthDeathUnitField, fourthDeaths);
    }