Example #1
0
    public void setScore(int level, int score, DISPLAYER theDisplay)
    {
//        print("score : " + score + " to " + theDisplay.ToString() + " in level " + level);
        if (level >= 1 && level <= 10)
        {
            if (theDisplay == DISPLAYER.FIRST_SHOT)
            {
                allDisplayer[level - 1].first.text = score.ToString();
            }
            else if (theDisplay == DISPLAYER.SECOND_SHOT)
            {
                allDisplayer[level - 1].second.text = score.ToString();
            }
            else if (theDisplay == DISPLAYER.SUBTOTAL)
            {
                allDisplayer[level - 1].total.text = score.ToString();
            }
            else if (theDisplay == DISPLAYER.THIRD_SHOT)
            {
                thirdShot.text = score.ToString();
            }
            else if (theDisplay == DISPLAYER.TOTAL)
            {
                totalText.text = score.ToString();
            }
        }
    }
Example #2
0
    public void setScore(int level, SPECIAL score, DISPLAYER theDisplay)
    {
//        print("score : " + score + " to " + theDisplay.ToString() + " in level " + level);
        string symbole = "";

        if (score == SPECIAL.SPAR)
        {
            symbole = "/";
        }
        else if (score == SPECIAL.STRIKE)
        {
            symbole = "X";
        }
        else if (score == SPECIAL.NONE)
        {
            symbole = " ";
        }


        if (level >= 1 && level <= 10)
        {
            if (theDisplay == DISPLAYER.FIRST_SHOT)
            {
                allDisplayer[level - 1].first.text = symbole;
            }
            else if (theDisplay == DISPLAYER.SECOND_SHOT)
            {
                allDisplayer[level - 1].second.text = symbole;
            }
            else if (theDisplay == DISPLAYER.SUBTOTAL)
            {
                allDisplayer[level - 1].total.text = symbole;
            }
            else if (theDisplay == DISPLAYER.THIRD_SHOT)
            {
                thirdShot.text = symbole;
            }
            else if (theDisplay == DISPLAYER.TOTAL)
            {
                totalText.text = symbole;
            }
        }
    }