예제 #1
0
    void updateTotalCredit()
    {
        UIScoreNumber sn = totalCreditObject.GetComponent <UIScoreNumber>();

        sn.textColor = Color.red;
        sn.number    = awardScore + bulletScore + tankScore + brickScore;
    }
예제 #2
0
    public void setBulletCredit(int score)
    {
        UIScoreNumber sn = bulletCreditObject.GetComponent <UIScoreNumber>();

        sn.number   = score;
        bulletScore = score;
        updateTotalCredit();
    }
예제 #3
0
    public void setAwardCredit(int score)
    {
        UIScoreNumber sn = awardCreditObject.GetComponent <UIScoreNumber>();

        sn.number  = score;
        awardScore = score;
        updateTotalCredit();
    }
예제 #4
0
    public void setTankCredit(int score)
    {
        UIScoreNumber sn = tankCreditObject.GetComponent <UIScoreNumber>();

        sn.number = score;
        tankScore = score;
        updateTotalCredit();
    }