我有一段代码在我想要的地方,这样在点击必要的按钮之前它不会执行那段代码,在这种情况下是再次播放按钮。这是我的一段代码:
private void ShowResultsOfThrow()
{
TwoUp.SetUpCoins();
TwoUp.ThrowCoins();
TwoUp.OutputWinner();
do
{
TwoUp.ThrowCoins();
TwoUp.OutputWinner();
TwoUp.HoldPoints();
} while //when the button is clicked to play again
TwoUp.ResetGlobals();
}