示例#1
0
    public void Bowl(int pinFall)
    {
        try {
            bowls.Add(pinFall);
            ball.Reset();

            pinSetter.PerfomAction(ActionMaster.NextAction(bowls));
        } catch {
            Debug.LogWarning("Something went wrong in Bowl()");
        }

        try {
            scoreDisplay.FillRolls(bowls);
            scoreDisplay.FillFrames(ScoreMaster.ScoreCumulative(bowls));
        } catch {
            Debug.LogWarning("FillRollCard or FillFrames failed");
        }
    }